OIDCSessionBuilder#

class OIDCSessionBuilder(client_factory, session_factory=None)#

Helps create OpenID Connect sessions from different types of input and provides OIDC-specific configuration options.

Parameters
client_factoryApiClientFactory

Parent API client factory object that will be returned once configuration is complete.

session_factoryOIDCSessionFactory, optional

OIDC session factory object that will be configured and used to return an OAuth-supporting session.

Methods

OIDCSessionBuilder.authorize([login_timeout])

Authenticate the user interactively by opening a web browser and waiting for the user to log in.

OIDCSessionBuilder.with_stored_token([...])

Use a token stored in the system keyring to authenticate the session.

OIDCSessionBuilder.with_token(refresh_token)

Use a provided refresh token to authenticate the session.