reading-notes

Reading Notes for Codefellows

View the Project on GitHub kylecohen14/reading-notes

Authentication

What is OAuth

  1. What is OAuth?
    • OAuth is an open-standard authorization protocol or framework that describes how unrelated servers and services can safely allow authenticated access to their assets without actually sharing the initial, related, single logon credential. In authentication parlance, this is known as secure, third-party, user-agent, delegated authorization.
  2. Give an example of what using OAuth would look like.
    • The simplest example of OAuth is 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. You then click on the button linked to the other website, the other website authenticates you, and the website you were originally connecting to logs you on itself afterward using permission gained from the second website.
  3. How does OAuth work? What are the steps that it takes to authenticate the user?
    • user signed into website. User initiates a feature that need access to another site. following happens
    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 (which may or may not be the second site).
    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 (or their software silently approves) a particular transaction type at the first website.
    7. The user is given an approved access token (notice it’s no longer a request 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.
    12. The user sees a successfully completed transaction occurring.
  4. What is OpenID?
    • A single sign in. Friendly sign in

### cited below

Authorization and Authentication flows

  1. What is the difference between authorization and authentication?
    • authentication is checking user, authorization is access to protected resources
  2. What is Authorization Code Flow?
    • login, goes to authorization server
    • autho0 server goes to login
    • logins, consent page
    • redirect to app with authorization good for one use
    • send authorization to server with client id
    • auth0 verifies
    • server responds with id token and acess token
    • app uses token to call for info on user
    • api responds with API data
  3. What is Authorization Code Flow with Proof Key for Code Exchange (PKCE)?
    • The user clicks Login within the application.
  1. What is Implicit Flow with Form Post?
    • The user clicks Login in the app.
  1. What is Client Credentials Flow?
    • Your app authenticates with the Auth0 Authorization Server using its Client ID and Client Secret (/oauth/token endpoint).
  1. What is Device Authorization Flow?
    • The user starts the app on the device.

asking the user to visit the verification_uri and enter the user_code after displaying these values on-screen

asking the user to interact with either a QR Code or shortened URL with embedded user code generated from the verification_uri_complete

directly navigating to the verification page with embedded user code using verification_uri_complete, if running natively on a browser-based device

  1. What is Resource Owner Password Flow?
    • The user clicks Login within the application and enters their credentials.

### cite - What is OAuth? HOw the open authorization framework works (https://www.csoonline.com/article/3216404/what-is-oauth-how-the-open-authorization-framework-works.html) - Authentication adn authorization flows (https://auth0.com/docs/flows)