Class ProgrammaticExternalAccountCredential.Initializer
Initializer for ProgrammaticExternalAccountCredential.
Inheritance
Inherited Members
Namespace: Google.Apis.Auth.OAuth2
Assembly: Google.Apis.Auth.dll
Syntax
public class ProgrammaticExternalAccountCredential.Initializer : ExternalAccountCredential.Initializer
Constructors
Initializer(ProgrammaticExternalAccountCredential)
Builds and initializer for ProgrammaticExternalAccountCredential from the given credential.
Declaration
public Initializer(ProgrammaticExternalAccountCredential credential)
Parameters
| Type | Name | Description |
|---|---|---|
| ProgrammaticExternalAccountCredential | credential |
Initializer(Initializer)
Builds and initializer for ProgrammaticExternalAccountCredential from the given initializer.
Declaration
public Initializer(ProgrammaticExternalAccountCredential.Initializer other)
Parameters
| Type | Name | Description |
|---|---|---|
| ProgrammaticExternalAccountCredential.Initializer | other |
Initializer(string, string, string, ISubjectTokenProvider)
Builds an initializer for ProgrammaticExternalAccountCredential.
Declaration
public Initializer(string tokenUrl, string audience, string subjectTokenType, ProgrammaticExternalAccountCredential.ISubjectTokenProvider subjectTokenProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| string | tokenUrl | The STS token exchange endpoint. Must not be null or empty. |
| string | audience | 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. |
| string | subjectTokenType | The STS subject token type based on the OAuth 2.0 token exchange specification. Must not be null or empty. |
| ProgrammaticExternalAccountCredential.ISubjectTokenProvider | subjectTokenProvider | The provider of the third-party token that's included on the STS token exchange request. Must not be null. |
Properties
SubjectTokenProvider
The provider of the third-party token that's included on the STS token exchange request. Will not be null.
Declaration
public ProgrammaticExternalAccountCredential.ISubjectTokenProvider SubjectTokenProvider { get; }
Property Value
| Type | Description |
|---|---|
| ProgrammaticExternalAccountCredential.ISubjectTokenProvider |