Browse Source

Added OIDC - JWT Access Token validation tutorial - lint fix

pull/10278/head
Sander Brandenburg 2 years ago
parent
commit
061bb458cf
  1. 2
      docs_src/security/tutorial008_an_py39.py

2
docs_src/security/tutorial008_an_py39.py

@ -71,7 +71,7 @@ class AccessTokenValidator(HTTPBearer):
raise HTTPException( raise HTTPException(
status_code=HTTP_400_BAD_REQUEST, status_code=HTTP_400_BAD_REQUEST,
detail="Unsupported authorization code", detail="Unsupported authorization code",
) ) from None
# 4. if security scopes are present, validate them # 4. if security scopes are present, validate them
if security_scopes and security_scopes.scopes: if security_scopes and security_scopes.scopes:

Loading…
Cancel
Save