| |
- builtins.object
-
- Authenticator
class Authenticator(builtins.object) |
|
Authenticator(auth_url: str, client_id: str, client_secret: str)
Authenticator class is implemented to retrieve the authorization token from the xsuaa server
:param auth_url: URL of the authorization endpoint. Should be the full URL (including /oauth/token)
:type auth_url: str
:param client_id: client id to be used for authorization
:type client_id: str
:param client_secret: client secret to be used for authorization
:type client_secret: str |
|
Methods defined here:
- __init__(self, auth_url: str, client_id: str, client_secret: str)
- Initialize self. See help(type(self)) for accurate signature.
- get_token(self) -> str
- Retrieves the token from the xsuaa server.
:raises: class:`ai_api_client_sdk.exception.AIAPIAuthenticatorException` if an unexpected exception occurs while
trying to retrieve the token
:return: The Bearer token
:rtype: str
Data descriptors defined here:
- __dict__
- dictionary for instance variables (if defined)
- __weakref__
- list of weak references to the object (if defined)
| |