Class V1betaResource.TokenRequest
Exchanges a credential for a Google OAuth 2.0 access token. The token asserts an external identity within a
workload identity pool, or it applies a Credential Access Boundary to a Google access token. When you call
this method, do not send the Authorization
HTTP header in the request. This method does not require the
Authorization
header, and using the header can cause the request to fail.
Inheritance
V1betaResource.TokenRequest
Implements
Inherited Members
Namespace: Google.Apis.CloudSecurityToken.v1beta
Assembly: Google.Apis.CloudSecurityToken.v1beta.dll
Syntax
public class V1betaResource.TokenRequest : CloudSecurityTokenBaseServiceRequest<GoogleIdentityStsV1betaExchangeTokenResponse>, IClientServiceRequest<GoogleIdentityStsV1betaExchangeTokenResponse>, IClientServiceRequest
Constructors
TokenRequest(IClientService, GoogleIdentityStsV1betaExchangeTokenRequest)
Constructs a new Token request.
Declaration
public TokenRequest(IClientService service, GoogleIdentityStsV1betaExchangeTokenRequest body)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleIdentityStsV1betaExchangeTokenRequest | body |
Properties
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes Token parameter list.
Declaration
protected override void InitParameters()