entra_id_provider
- class auth_middleware.providers.entra_id.entra_id_provider.EntraIDProvider
- create_user_from_token(token: JWTAuthorizationCredentials) User
Initializes a domain User object with data recovered from a JWT TOKEN. Args: token (JWTAuthorizationCredentials): Defaults to Depends(oauth2_scheme).
- Returns:
User: Domain object.
- async get_keys(jwks_uri: str) Any
Get keys
- Returns:
TODO: List[JWK]: a list of JWK
- async get_openid_config() Dict[str, str]
Get openid config from entradid
- Returns:
List[JWK]: a list of JWK
- async load_jwks() JWKS
Load JWKS credentials from remote Identity Provider
- Returns:
JWKS: _description_
- async verify_token(token: JWTAuthorizationCredentials) bool
Verifiy token signature
- Args:
token (JWTAuthorizationCredentials): _description_
- Raises:
AzureException: _description_
- Returns:
bool: _description_