Skip to content

Support with OAUTH1 and OAUTH 2 authentication #263

Answered by dbanty
jsanjay63 asked this question in Q&A

You must be logged in to vote

Hey Sanjay 👋. There aren't any features that do oauth-specific things (yet). As far as auth, the only thing generated clients will have is an AuthenticatedClient which has a token attribute. Using that client will put a header in your requests like "Authorization": f"Bearer {token}" which is pretty standard in OAuth, but not guaranteed to be what your service uses. You can also set headers and cookies yourself for whatever your service uses.

It would certainly be nice for us to generate more helpful code around OAuth, but I haven't yet figured out an ergonomic way to do that. If you have suggestions, I'd love to hear it!

Replies: 3 comments 4 replies

You must be logged in to vote
0 replies
Answer selected by dbanty

You must be logged in to vote
1 reply
@dbanty

You must be logged in to vote
3 replies
@dbanty

@jsanjay63

@emann

emann Jan 7, 2021
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants