INNER CODE UNIT · Python
get_issuer
tokusumi/fastapi-cloudauth · fastapi_cloudauth/auth0.py:16
def get_issuer(domain: str) -> str:
url = f"https://{domain}/.well-known/openid-configuration"
openid_config = requests.get(url).json()
return str(openid_config.get("issuer", ""))
class JWKS(BaseJWKS):
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