Compartilhar via


AuthInfo Class

The authorization properties for accessing the source code repository.

All required parameters must be populated in order to send to Azure.

Inheritance
azure.mgmt.containerregistry._serialization.Model
AuthInfo

Constructor

AuthInfo(*, token_type: str | _models.TokenType, token: str, refresh_token: str | None = None, scope: str | None = None, expires_in: int | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
token_type

The type of Auth token. Required. Known values are: "PAT" and "OAuth".

token
str

The access token used to access the source control provider. Required.

refresh_token
str

The refresh token used to refresh the access token.

scope
str

The scope of the access token.

expires_in
int

Time in seconds that the token remains valid.

Variables

Name Description
token_type

The type of Auth token. Required. Known values are: "PAT" and "OAuth".

token
str

The access token used to access the source control provider. Required.

refresh_token
str

The refresh token used to refresh the access token.

scope
str

The scope of the access token.

expires_in
int

Time in seconds that the token remains valid.