pyrit.auth.AzureAuth#

class AzureAuth(token_scope: str, tenant_id: str = '')[source]#

Bases: Authenticator

Azure CLI Authentication.

__init__(token_scope: str, tenant_id: str = '')[source]#

Methods

__init__(token_scope[, tenant_id])

get_token()

Get the current token.

refresh_token()

Refresh the access token if it is expired.

Attributes

token

get_token() str[source]#

Get the current token.

Returns: The current token

refresh_token() str[source]#

Refresh the access token if it is expired.

Returns:

A token