pyrit.auth.Authenticator#

class Authenticator[source]#

Bases: ABC

Abstract base class for authenticators.

__init__()#

Methods

__init__()

get_token()

Get the current authentication token.

refresh_token()

Refresh the authentication token.

Attributes

abstract get_token() str[source]#

Get the current authentication token.

Returns:

The current authentication token.

Return type:

str

abstract refresh_token() str[source]#

Refresh the authentication token.

Returns:

The refreshed authentication token.

Return type:

str

token: str#