reading-notes


Project maintained by Razan-am Hosted on GitHub Pages — Theme by mattgraham

What is OAuth

What is OAuth?

Give an example of what using OAuth would look like.

For Example :

  • When you go to log onto a website and it offers one or more opportunities to log on using another website’s/service’s logon.

How does OAuth work? What are the steps that it takes to authenticate the user?

  1. The first website connects to the second website on behalf of the user, using OAuth, providing the user’s verified identity.
  2. The second site generates a one-time token and a one-time secret unique to the transaction and parties involved.
  3. The first site gives this token and secret to the initiating user’s client software.
  4. The client’s software presents the request token and secret to their authorization provider.
  5. If not already authenticated to the authorization provider, the client may be asked to authenticate. After authentication, the client is asked to approve the authorization transaction to the second website.
  6. The user approves a particular transaction type at the first website.
  7. The user is given an approved access token.
  8. The user gives the approved access token to the first website.
  9. The first website gives the access token to the second website as proof of authentication on behalf of the user.
  10. The second website lets the first website access their site on behalf of the user.
  11. The user sees a successfully completed transaction occurring.

What is OpenID?


Authorization and Authentication flows

What is the difference between authorization and authentication?

What is Authorization Code Flow?

What is Authorization Code Flow with Proof Key for Code Exchange PKCE?

What is Implicit Flow with Form Post?

What is Client Credentials Flow?

What is Device Authorization Flow?

What is Resource Owner Password Flow?


References:

@By Roger A. Grimes and Josh Fruhlinger /What is OAuth? How the open authorization framework works

@By Auth0/Authentication and Authorization Flows