pyrit.auth.Authenticator#
- class Authenticator[source]#
Bases:
ABCAbstract base class for authenticators.
- __init__()#
Methods
__init__()Get the current authentication token synchronously.
Get the current authentication token asynchronously.
Refresh the authentication token synchronously.
Refresh the authentication token asynchronously.
Attributes
- get_token() str[source]#
Get the current authentication token synchronously.
- Returns:
The current authentication token.
- Return type:
- async get_token_async() str[source]#
Get the current authentication token asynchronously.
- Returns:
The current authentication token.
- Return type:
- refresh_token() str[source]#
Refresh the authentication token synchronously.
- Returns:
The refreshed authentication token.
- Return type: