benchling_sdk.auth.bearer_token_auth module¶
- class BearerTokenAuth¶
Bases:
benchling_api_client.v2.benchling_client.AuthorizationMethodBearer Token Authorization.
Use in combination with the Benchling() client constructor to be authorized with Bearer Token Authorization
- __init__(token_function: BearerTokenProvider) None¶
Init BearerTokenAuth with a callable BearerTokenProvider for providing bearer tokens.
- classmethod from_token(bearer_token: str) BearerTokenAuth¶
Create a BearerTokenAuth that always uses a static bearer token string.