symphony.bdk.core.auth.auth_session.AuthSession#
- class symphony.bdk.core.auth.auth_session.AuthSession(authenticator)#
Bases:
object
RSA Authentication session handle to get session and key manager tokens from. It uses a BotAuthenticator to actually retrieve the tokens when needed.
- __init__(authenticator)#
- Parameters
authenticator – the
symphony.bdk.core.auth.bot_authenticator.BotAuthenticator
instance to retrieve the tokens from.
Methods
__init__
(authenticator)- param authenticator
the
symphony.bdk.core.auth.bot_authenticator.BotAuthenticator
instance to
refresh
()Trigger re-authentication to refresh the tokens.
Attributes
Auth token request calls the same endpoint that session token. Therefore, session token is updated unintentionally, since there's no explicit way to update authorization token exclusively : return: (str) authorization_token like Bearer eyJh.
- return
the key manager token
- return
the session token.
- property auth_token#
Auth token request calls the same endpoint that session token. Therefore, session token is updated unintentionally,
since there’s no explicit way to update authorization token exclusively : return: (str) authorization_token like Bearer eyJh…
- property key_manager_token#
- Returns
the key manager token
- async refresh()#
Trigger re-authentication to refresh the tokens.
- property session_token#
- Returns
the session token.