symphony.bdk.core.auth.auth_session.AppAuthSession#
- class symphony.bdk.core.auth.auth_session.AppAuthSession(authenticator, app_token: str)#
Bases:
object
Extension application RSA authentication handle to store the tokens. It uses a
symphony.bdk.core.auth.ext_app_authenticator.ExtensionAppAuthenticator
to actually authenticate and retrieve the tokens.- __init__(authenticator, app_token: str)#
- Parameters
authenticator – the
symphony.bdk.core.auth.ext_app_authenticator.ExtensionAppAuthenticator
which will actually perform the authenticationapp_token – the application token
Methods
__init__
(authenticator, app_token)- param authenticator
the
symphony.bdk.core.auth.ext_app_authenticator.ExtensionAppAuthenticator
refresh
()Triggers re-authentication to refresh the tokens.
Attributes
- return
the application token
- return
the Unix timestamp in milliseconds of the Symphony token expiration
- return
the Symphony token
- property app_token: str#
- Returns
the application token
- property expire_at: int#
- Returns
the Unix timestamp in milliseconds of the Symphony token expiration
- async refresh() None #
Triggers re-authentication to refresh the tokens.
- Returns
None
- property symphony_token: str#
- Returns
the Symphony token