pre-commit-ci-lite[bot]
5 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
1 deletions
-
tests/test_security_oauth2_authorization_code_bearer_scopes_openapi.py
|
|
|
@ -36,7 +36,8 @@ async def read_with_oauth2_scheme(): |
|
|
|
|
|
|
|
|
|
|
|
@app.get( |
|
|
|
"/with-get-token", dependencies=[Security(get_token, oauth_scopes=["read", "write"])] |
|
|
|
"/with-get-token", |
|
|
|
dependencies=[Security(get_token, oauth_scopes=["read", "write"])], |
|
|
|
) |
|
|
|
async def read_with_get_token(): |
|
|
|
return {"message": "Admin Access"} |
|
|
|
|