-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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
✨ Implement OAuth2ClientCredentials class #11560
base: master
Are you sure you want to change the base?
Conversation
📝 Docs preview for commit cd54625 at: https://2a2d3f58.fastapitiangolo.pages.dev |
📝 Docs preview for commit 277ce11 at: https://d8427a3b.fastapitiangolo.pages.dev |
📝 Docs preview for commit 6da2919 at: https://28134091.fastapitiangolo.pages.dev |
|
||
|
||
def test_token(): | ||
response = client.get("/items", headers={"Authorization": "Bearer testtoken"}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are we not setting the testtoken
in a const file instead of duplicating it everywhere?
FastAPI currently implements the password and authorization code flows.
This PR adds the client credentials OAuth flow class.