-
-
Notifications
You must be signed in to change notification settings - Fork 58
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 Authentication Flow Support #558
Comments
That's something in TODO that should be implemented to provide more easy way to implement oauth. Of course SDK could help with implementing some basics, but will not provide one line solution. And, to be honest, the priority for it is pretty low. Probably, you are the second at most who wants it in this SDK |
Thanks for the update! Totally understandable that it’s a low priority, and I appreciate the insight. That said, I’d be more than happy with any kind of workaround, hack, or guidance you can offer - just something to help me move forward. I’ve hit a point where I’m burning too many hours trying to piece it together on my own, so I figured I’d reach out before going in circles any longer. If there’s anything you can share, I’d really appreciate it! Thanks again for your time. 🙏 |
I highly recommend to start from this: https://github.com/bluesky-social/cookbook/tree/main/python-oauth-web-app It will be cool if you could provide lists of lacked features in SDK to implement that cookbook more easily. That will help for future development |
I came here looking for OAuth also. Just dropping a note here to let you know there is some demand. I guess it has to be done using other python packages for now. |
Description
I'm integrating Bluesky authentication via OAuth into a web app with a custom backend built on
atproto.blue
andFastAPI
. I've successfully implemented the frontend OAuth flow using @atproto/oauth-client-browser, but I'm struggling to use the acquired data to authenticate myatproto.blue
client instance.Use Case
I need an authenticated client instance to perform specific queries and calculations via a custom service:
From what I've gathered, the only authentication options are
client.login('handle', 'password')
orclient.login(session_string="exported_session_string_after_successful_authentication")
, and I'm failing to understand how (or if) I can achieve either of these with OAuth on the frontend. I've examined the exported session string formathandle:::did:::accessToken:::refreshToken:::serviceEndpoint
but can't determine how to properly construct this.Request
Could you please add support for:
Client
instance using the OAuth session data.Many apps will need to implement Bluesky authentication without handling user passwords directly. A standardised OAuth flow would greatly improve security and user experience across all applications.
Is something like this even possible?
Thanks for your time and hard work! 🙏
The text was updated successfully, but these errors were encountered: