INNER CODE UNIT · Python
_noop_openapi_security
yezz123/authx · authx/main.py:43
def _noop_openapi_security() -> None:
"""Placeholder dependency for token locations that OpenAPI cannot represent."""
return None
_OPENAPI_BEARER_DESCRIPTION = (
"Paste an AuthX JWT from create_access_token/create_refresh_token, not JWT_SECRET_KEY. "
"The Bearer prefix is optional in Swagger UI."
)
_OPENAPI_HEADER_DESCRIPTION = "Provide an AuthX JWT in this header, not JWT_SECRET_KEY."
_OPENAPI_ACCESS_COOKIE_DESCRIPTION = "Provide an AuthX access token in this cookie."
_OPENAPI_REFRESH_COOKIE_DESCRIPTION = "Provide an AuthX refresh token in this cookie."
_OPENAPI_QUERY_DESCRIPTION = "Provide an AuthX JWT in this query parameter."
class AuthX(_CallbackHandler[T], _ErrorHandler):
"""The base class for AuthX.