flask_oidc.model module¶
- class flask_oidc.model.User(ext)[source]¶
Bases:
objectA representation of an OIDC-based user.
- Parameters:
ext (OpenIDConnect) – the extension instance
- property access_token¶
The user’s OIDC access token.
- property email¶
The user’s email.
- property groups¶
The list of group names the user belongs to.
- property logged_in¶
Return
Trueif the user is logged in,Falseotherwise.
- property name¶
The user’s nickname.
- property profile¶
The user’s OIDC profile, if any.
- Raises:
RuntimeError – when
OIDC_USER_INFO_ENABLEDisFalsein the application’s configuration.
- property refresh_token¶
The user’s OIDC refresh token.
- property unique_id¶
The unique and immutable identifier on the Issuer side