INNER CODE UNIT · Python
_construct
tokusumi/fastapi-cloudauth · fastapi_cloudauth/auth0.py:23
def _construct(self, jwks: Dict[str, Any]) -> Dict[str, Key]:
return {_jwk["kid"]: jwk.construct(_jwk) for _jwk in jwks.get("keys", [])}
class Auth0(ScopedAuth):
"""
Verify access token of auth0
"""
user_info = None
def __init__(
self,
domain: str,
customAPI: str,
issuer: Optional[str] = None,
scope_key: Optional[str] = "permissions",
auto_error: bool = True,