“Class 15” Reading Notes 📖
What is OAuth
- 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.
- 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.
- How does OAuth work? What are the steps that it takes to authenticate the user?
- What is OpenID?
- OpenID is for humans logging into machines, the idea, in the early days of Web 2.0, was that rather than having multiple logins for multiple websites, OpenID would serve as a single sign-in, vouching for the identities of users.
Authorization and Authentication flows
- What is the difference between authorization and authentication?

- What is Authorization Code Flow?
- Because regular web apps are server-side apps where the source code is not publicly exposed, they can use the Authorization Code Flow, which exchanges an Authorization Code for a token.
- What is Authorization Code Flow with Proof Key for Code Exchange (PKCE)?
- During authentication, mobile and native applications can use the Authorization Code Flow, but they require additional security. Additionally, single-page apps have special challenges. To mitigate these, OAuth 2.0 provides a version of the Authorization Code Flow which makes use of a Proof Key for Code Exchange (PKCE).
- What is Implicit Flow with Form Post?
- Is intended for Public Clients, or applications which are unable to securely store Client Secrets. While this is no longer considered a best practice for requesting Access Tokens, when used with Form Post response mode, it does offer a streamlined workflow if the application needs only an ID token to perform user authentication.
- What is Client Credentials Flow?
- Client Credentials Flow passes along their Client ID and Client Secret to authenticate themselves and get a token.
- What is Device Authorization Flow?
- Passes along their Client ID to initiate the authorization process and get a token.
- What is Resource Owner Password Flow?
- Though we do not recommend it, highly-trusted applications can use the Resource Owner Password Flow, which requests that users provide credentials (username and password), typically using an interactive form. The Resource Owner Password Flow should only be used when redirect-based flows (like the Authorization Code Flow) cannot be used.
Things I want to know more about
Call API using the authentication code
References