IRepositoryBranchAndAuth.WithRepositoryAuthentication Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WithRepositoryAuthentication(TokenType, String) |
The function that allows the user to input the type of the token used for authentication and the token itself to authenticate to the source control repository. |
WithRepositoryAuthentication(TokenType, String, String, String, Int32) |
The function that allows the user to input the type of the token used for authentication and the token itself to authenticate to the source control repository. |
WithRepositoryAuthentication(TokenType, String)
The function that allows the user to input the type of the token used for authentication and the token itself to authenticate to the source control repository.
public Microsoft.Azure.Management.ContainerRegistry.Fluent.RegistrySourceTrigger.Definition.ISourceTriggerAttachable WithRepositoryAuthentication (Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.TokenType tokenType, string token);
abstract member WithRepositoryAuthentication : Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.TokenType * string -> Microsoft.Azure.Management.ContainerRegistry.Fluent.RegistrySourceTrigger.Definition.ISourceTriggerAttachable
Public Function WithRepositoryAuthentication (tokenType As TokenType, token As String) As ISourceTriggerAttachable
Parameters
- tokenType
- TokenType
The type of the token used to authenticate to the source control repository.
- token
- String
The token used to authenticate to the source control repository.
Returns
Applies to
WithRepositoryAuthentication(TokenType, String, String, String, Int32)
The function that allows the user to input the type of the token used for authentication and the token itself to authenticate to the source control repository.
public Microsoft.Azure.Management.ContainerRegistry.Fluent.RegistrySourceTrigger.Definition.ISourceTriggerAttachable WithRepositoryAuthentication (Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.TokenType tokenType, string token, string refreshToken, string scope, int expiresIn);
abstract member WithRepositoryAuthentication : Microsoft.Azure.Management.ContainerRegistry.Fluent.Models.TokenType * string * string * string * int -> Microsoft.Azure.Management.ContainerRegistry.Fluent.RegistrySourceTrigger.Definition.ISourceTriggerAttachable
Public Function WithRepositoryAuthentication (tokenType As TokenType, token As String, refreshToken As String, scope As String, expiresIn As Integer) As ISourceTriggerAttachable
Parameters
- tokenType
- TokenType
The type of the token used to authenticate to the source control repository.
- token
- String
The token used to authenticate to the source control repository.
- refreshToken
- String
The token that is used to refresh the access token.
- scope
- String
The scope of the access token.
- expiresIn
- Int32
Time in seconds that the token remains valid.
Returns
Applies to
Azure SDK for .NET