-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OAuth Stuff #15
Comments
Confidential Client Authentication is also a thing, but for a first-pass I will not support confidential clients |
note to self: be mindful of CSRF on form submission |
We have to request and validate client metadata, per https://github.com/bluesky-social/proposals/tree/main/0004-oauth#client-metadata This is a bit annoying since the request needs to happen pre-auth, so we'll have to be aggressive about rate limiting, and maybe even cache the result? It's not totally clear where the validation is support to happen. on PAR? when the client loads the auth endpoint? after the user enters their creds on the auth endpoint? the latter could let us gate the metadata request behind successful auth |
Immediate agenda:
|
re: web auth session cookies We could use JWT for this again and be "stateless", but really, this needs statefulness. Using a uuid token and a database column is easier to get my head around. I'll store the associated state in a CBOR blob for now, so it's more extensible without changing the db schema. Remember to set them as http-only! |
I was previously gonna reuse the
If not, redirect to |
I'll also need to have a db table to track which users have authorized which scopes to which app |
Creating this issue to track OAuth stuff.
Docs: https://atproto.com/specs/oauth
Initial proposal: https://github.com/bluesky-social/proposals/tree/main/0004-oauth
Client implementations (useful for reference):
Incomplete list of specific things we need to implement:
The text was updated successfully, but these errors were encountered: