symphony.bdk.core.auth.obo_authenticator.OboAuthenticatorRsa#
- class symphony.bdk.core.auth.obo_authenticator.OboAuthenticatorRsa(app_config: symphony.bdk.core.config.model.bdk_app_config.BdkAppConfig, authentication_api: symphony.bdk.gen.login_api.authentication_api.AuthenticationApi, retry_config: symphony.bdk.core.config.model.bdk_retry_config.BdkRetryConfig)#
Bases:
symphony.bdk.core.auth.obo_authenticator.OboAuthenticator
Obo authenticator RSA implementation.
- __init__(app_config: symphony.bdk.core.config.model.bdk_app_config.BdkAppConfig, authentication_api: symphony.bdk.gen.login_api.authentication_api.AuthenticationApi, retry_config: symphony.bdk.core.config.model.bdk_retry_config.BdkRetryConfig)#
Methods
__init__
(app_config, authentication_api, ...)authenticate_by_user_id
(user_id)Authenticate On-Behalf-Of user by user id.
authenticate_by_username
(username)Authenticate On-Behalf-Of user by username.
Retrieve the OBO session token by user id.
retrieve_obo_session_token_by_username
(username)Retrieve the OBO session token by username.
Attributes
unauthorized_message
- authenticate_by_user_id(user_id: int) symphony.bdk.core.auth.auth_session.OboAuthSession #
Authenticate On-Behalf-Of user by user id.
- Parameters
user_id – User Id
- Returns
the OBO authentication session.
- authenticate_by_username(username: str) symphony.bdk.core.auth.auth_session.OboAuthSession #
Authenticate On-Behalf-Of user by username.
- Parameters
username – Username
- Returns
the OBO authentication session.
- async retrieve_obo_session_token_by_user_id(user_id: int) str #
Retrieve the OBO session token by user id.
- Parameters
user_id – User Id.
- Returns
The obo session token.
- Raises
AuthUnauthorizedError – if session token cannot be retrieved
- async retrieve_obo_session_token_by_username(username: str) str #
Retrieve the OBO session token by username.
- Parameters
username – Username
- Returns
The obo session token.
- Raises
AuthUnauthorizedError – if session token cannot be retrieved