Skip to content

Instantly share code, notes, and snippets.

@erikdstock
Last active June 15, 2020 22:50
Show Gist options
  • Save erikdstock/93b8bbf6340ddf8e8bd6997aac148448 to your computer and use it in GitHub Desktop.
Save erikdstock/93b8bbf6340ddf8e8bd6997aac148448 to your computer and use it in GitHub Desktop.
Authentication/Authorization Notes

Authentication & Authorization

Oauth 2.0 Flows

  • Authorization Code Flow: Server-side web apps where code is not publicly exposed - allowing the client to exchange an authorization code for a token
  • Authorization Code Flow with Proof Key for Code Exchange (PKCE):
  • Device Authorization Flow: Entering a code from your Roku screen on the hulu website for example.
  • Client Credentials flow: For machine to machine
  • Auth0: Authorization Flows good docs all around here.
  • Auth0: Which flow should I use?
  • Auth0: Silent Authentication Explains Auth0's approach to reloading a browser session on a client-only app.
  • OpenID Connect (OIDC): Oauth2-compliant protocol that supports social login using an Auth Token and passing profile information using an ID Token (as a JWT)

CORS, XSS & CSRF Basics

JWTs

  • JWTs should not be used issue on Flask-Security linknig to some resources that essentially argue the JWT standard is fatally flawed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment