INNER CODE UNIT · Python
__init__
dorinclisu/fastapi-auth0 · src/fastapi_auth0/auth.py:51
def __init__(self,
authorizationUrl: str,
scopes: Dict[str, str]={},
scheme_name: Optional[str]=None,
auto_error: bool=True):
flows = OAuthFlows(implicit=OAuthFlowImplicit(authorizationUrl=authorizationUrl, scopes=scopes))
super().__init__(flows=flows, scheme_name=scheme_name, auto_error=auto_error)
async def __call__(self, request: Request) -> Optional[str]:
# Overwrite parent call to prevent useless overhead, the actual auth is done in Auth0.get_user
# This scheme is just for Swagger UI
return None
class JwksKeyDict(TypedDict):
kid: str
kty: str
use: str