Class ProgrammaticExternalAccountCredential.Initializer (1.73.0)

public class ProgrammaticExternalAccountCredential.Initializer : ExternalAccountCredential.Initializer

Inheritance

object > ServiceCredentialInitializer > ExternalAccountCredentialInitializer > ProgrammaticExternalAccountCredential.Initializer

Namespace

Google.Apis.Auth.OAuth2

Assembly

Google.Apis.Auth.dll

Constructors

Initializer(ProgrammaticExternalAccountCredential)

public Initializer(ProgrammaticExternalAccountCredential credential)

Builds and initializer for ProgrammaticExternalAccountCredential from the given credential.

Parameter
Name Description
credential ProgrammaticExternalAccountCredential

Initializer(Initializer)

public Initializer(ProgrammaticExternalAccountCredential.Initializer other)

Builds and initializer for ProgrammaticExternalAccountCredential from the given initializer.

Parameter
Name Description
other ProgrammaticExternalAccountCredentialInitializer

Initializer(string, string, string, ISubjectTokenProvider)

public Initializer(string tokenUrl, string audience, string subjectTokenType, ProgrammaticExternalAccountCredential.ISubjectTokenProvider subjectTokenProvider)

Builds an initializer for ProgrammaticExternalAccountCredential.

Parameters
Name Description
tokenUrl string

The STS token exchange endpoint. Must not be null or empty.

audience string

The STS audience which contains the resource name for the workload identity pool and the provider identifier in that pool. Must not be null or empty.

subjectTokenType string

The STS subject token type based on the OAuth 2.0 token exchange specification. Must not be null or empty.

subjectTokenProvider ProgrammaticExternalAccountCredentialISubjectTokenProvider

The provider of the third-party token that's included on the STS token exchange request. Must not be null.

Properties

SubjectTokenProvider

public ProgrammaticExternalAccountCredential.ISubjectTokenProvider SubjectTokenProvider { get; }

The provider of the third-party token that's included on the STS token exchange request. Will not be null.

Property Value
Type Description
ProgrammaticExternalAccountCredentialISubjectTokenProvider

Extension Method