flask_oidc.model module

class flask_oidc.model.User(ext)[source]

Bases: object

A 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 True if the user is logged in, False otherwise.

property name

The user’s nickname.

property profile

The user’s OIDC profile, if any.

Raises:

RuntimeError – when OIDC_USER_INFO_ENABLED is False in 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