Browse Source

docs: clarify OpenIdConnect does not perform token validation

pull/13765/head
oxqnd 1 month ago
parent
commit
6f0d535085
  1. 7
      fastapi/security/open_id_connect_url.py

7
fastapi/security/open_id_connect_url.py

@ -12,6 +12,13 @@ class OpenIdConnect(SecurityBase):
"""
OpenID Connect authentication class. An instance of it would be used as a
dependency.
Note:
This class **does not perform any token validation or decoding**.
It only extracts the `Authorization` header and includes metadata in the OpenAPI docs.
You must implement the actual authentication logic separately (e.g., verifying
the token signature, claims, and user handling).
"""
def __init__(

Loading…
Cancel
Save