symphony.bdk.core.auth.obo_authenticator.OboAuthenticatorCert#
- class symphony.bdk.core.auth.obo_authenticator.OboAuthenticatorCert(certificate_authenticator_api: symphony.bdk.gen.auth_api.certificate_authentication_api.CertificateAuthenticationApi, retry_config: symphony.bdk.core.config.model.bdk_retry_config.BdkRetryConfig)#
Bases:
symphony.bdk.core.auth.obo_authenticator.OboAuthenticator
Obo authenticator Certificate implementation.
- __init__(certificate_authenticator_api: symphony.bdk.gen.auth_api.certificate_authentication_api.CertificateAuthenticationApi, retry_config: symphony.bdk.core.config.model.bdk_retry_config.BdkRetryConfig)#
Methods
__init__
(certificate_authenticator_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 username.
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.
- retrieve_obo_session_token_by_user_id(user_id: int) str #
Retrieve the OBO session token by username.
- Parameters
user_id – User Id.
- Returns
The obo session token.
- Raises
AuthUnauthorizedError – if session token cannot be retrieved
- 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