Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6653061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T01:13:17+00:00 2026-05-26T01:13:17+00:00

Ok here is my question. I understand the process of the OAuth protocol, however

  • 0

Ok here is my question.
I understand the process of the OAuth protocol, however I have some confusion around it.
I’m trying to take advantage of DotNetOpenAuth.Here is where I don’t get things.
Suppose a user (a new user), attempts to login to my website using Twitter.
The process goes like this (feel free to correct me if I’m wrong):

  • A request token is issued (if my ConsumerKey and ConsumerSecret are ok).
  • Then an authorization token is issued and the user is redirected to Twitter.
  • The user authorizes my application. And an access token is issued.
  • I get the current user’s details and store them in the database (along with the access token).

So far, so good.
Now here is the confusing part. The user logs out. Then comes back and tries to authenticate with Twitter again. How do I determine his access token, If I can’t get his identity before I have the access token ? I have him in the database, however I can’t determine who he is, before he goes through the same steps all over again. I’m sure I’m missing something, and I’ll appreciate it if you point it out. I’m aware of the IConsumerTokenManager, I tried reverse engineering the InMemoryTokenManager and see how it works, but it’s still not clear.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T01:13:17+00:00Added an answer on May 26, 2026 at 1:13 am

    Ah, the joys (ahem, lack thereof) of using an authorization protocol for authentication. I dislike OAuth for logging in. Grrr…

    With that out of the way, let me clarify the flow a bit:

    • An “unauthorized” request token is issued (if your ConsumerKey and ConsumerSecret are ok).
    • The user authorizes your application, and is sent back to your application
    • Your request token is now “authorized” and DotNetOpenAuth exchanges it for an access token.
    • You use the access token to get the current user’s details and store them in the database.

    When later, an anonymous user visits your site and wants to log in, you start the flow all over. Only this time, since Twitter recognizes the user (after they log in if need be) Twitter will likely immediately redirect the user back to your application rather than ask the user to confirm the login. The request token will be authorized, you’ll exchange it for an access token, and you’ll use that to get the user’s data. Oh! Now you see that the data matches an entry already in your database, and you welcome your visitor back.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question is about trying to understand the security risks involved in implementing oauth
Here's a question that I don't quite understand: The command, system(pause); is taught to
I have read quite a few selcet+update questions in here but cannot understand how
C# question here.. I have a UTF-8 string that is being interpreted by a
The question raised from the question here . In order to have search engines
I'm testing some code(trying to make it faster but also trying to understand the
This is related to a previous question . What I'm trying to understand now
Well, I have posted a question about F# and fuzzy logic, now trying to
Bit of an open-ended question here, so I'll outline the problem first. We have
I've been reading about dependency injection and have a simple question. I can understand

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.