Similar to OpenID. When a user logs in with OAuth, they recieve a token to use for verification against SSO services.
- Github OAuth
- Discord sign-in
Process
- Access token for API calls (short-lived)
- Refresh token for renewal (long-lived)
Requesting OAuth
- You go to the providers website
- The provider gives you a redirect URI that you can set after authentication to redirect to your own site
- Provider gives you a link for their own OAuth portal + info about your site, you can put this link in a button and say ‘Login with X’