symphony.bdk.core.auth.authenticator_factory.AuthenticatorFactory#
- class symphony.bdk.core.auth.authenticator_factory.AuthenticatorFactory(config: symphony.bdk.core.config.model.bdk_config.BdkConfig, api_client_factory: symphony.bdk.core.client.api_client_factory.ApiClientFactory)#
Bases:
objectAuthenticator Factory class
- Provides new instances for the main authenticators:
symphony.bdk.core.auth.bot_authenticator.BotAuthenticator: to authenticate the main Bot service accountsymphony.bdk.core.auth.obo_authenticator.OboAuthenticator: to perform on-behalf-of authenticationsymphony.bdk.core.auth.ext_app_authenticator.ExtensionAppAuthenticator: to perform extension application authentication
- __init__(config: symphony.bdk.core.config.model.bdk_config.BdkConfig, api_client_factory: symphony.bdk.core.client.api_client_factory.ApiClientFactory)#
- Parameters
config – the bot configuration
api_client_factory – the
symphony.bdk.core.client.api_client_factory.ApiClientFactoryinstance to create the BotAuthenticator from.
Methods
__init__(config, api_client_factory)- param config
the bot configuration
Creates a new instance of a Bot Authenticator service.
Creates a new instance of an extension app authenticator service.
Creates a new instance of a Obo Authenticator service.
- get_bot_authenticator() symphony.bdk.core.auth.bot_authenticator.BotAuthenticator#
Creates a new instance of a Bot Authenticator service.
- Returns
a new
symphony.bdk.core.auth.bot_authenticator.BotAuthenticatorinstance.
- get_extension_app_authenticator() symphony.bdk.core.auth.ext_app_authenticator.ExtensionAppAuthenticator#
Creates a new instance of an extension app authenticator service.
- Returns
a new
symphony.bdk.core.auth.ext_app_authenticator.ExtensionAppAuthenticatorinstance.
- get_obo_authenticator() symphony.bdk.core.auth.obo_authenticator.OboAuthenticator#
Creates a new instance of a Obo Authenticator service.
- Returns
a new
symphony.bdk.core.auth.obo_authenticator.OboAuthenticatorinstance.