Class V1Resource.TokenRequest
Exchanges a credential for a Google OAuth 2.0 access token. The token asserts an external identity within an
identity pool, or it applies a Credential Access Boundary to a Google access token. Note that workforce
pools do not support Credential Access Boundaries. 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
V1Resource.TokenRequest
Inherited Members
Namespace: Google.Apis.CloudSecurityToken.v1
Assembly: Google.Apis.CloudSecurityToken.v1.dll
Syntax
public class V1Resource.TokenRequest : CloudSecurityTokenBaseServiceRequest<GoogleIdentityStsV1ExchangeTokenResponse>, IClientServiceRequest<GoogleIdentityStsV1ExchangeTokenResponse>, IClientServiceRequest
Constructors
TokenRequest(IClientService, GoogleIdentityStsV1ExchangeTokenRequest)
Constructs a new Token request.
Declaration
public TokenRequest(IClientService service, GoogleIdentityStsV1ExchangeTokenRequest body)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
GoogleIdentityStsV1ExchangeTokenRequest | 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()