google-native logo
Google Cloud Native v0.30.0, Apr 14 23

google-native.authorization.getClientToken

Explore with Pulumi AI

Use this function to get an Google authentication token for the current login context.

Using getClientToken

function getClientToken(opts?: InvokeOptions): Promise<GetClientTokenResult>
def get_client_token(opts: Optional[InvokeOptions] = None) -> GetClientTokenResult
func GetClientToken(ctx *Context, opts ...InvokeOption) (*GetClientTokenResult, error)

> Note: This function is named GetClientToken in the Go SDK.

public static class GetClientToken 
{
    public static Task<GetClientTokenResult> InvokeAsync(InvokeOptions? opts = null)
}
public static CompletableFuture<GetClientTokenResult> getClientToken(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: google-native:authorization:getClientToken
  arguments:
    # arguments dictionary

getClientToken Result

The following output properties are available:

AccessToken string

The OAuth2 access token used by the client to authenticate against the Google Cloud API.

TokenType string

The type of auth token. Possible types are "Bearer", "MAC", "Basic".

Expiry string

Expiry is the optional expiration time of the access token. If zero, TokenSource implementations will reuse the same token forever and RefreshToken or equivalent mechanisms for that TokenSource will not be used.

RefreshToken string

RefreshToken is a token that's used by the application (as opposed to the user) to refresh the access token if it expires.

AccessToken string

The OAuth2 access token used by the client to authenticate against the Google Cloud API.

TokenType string

The type of auth token. Possible types are "Bearer", "MAC", "Basic".

Expiry string

Expiry is the optional expiration time of the access token. If zero, TokenSource implementations will reuse the same token forever and RefreshToken or equivalent mechanisms for that TokenSource will not be used.

RefreshToken string

RefreshToken is a token that's used by the application (as opposed to the user) to refresh the access token if it expires.

accessToken String

The OAuth2 access token used by the client to authenticate against the Google Cloud API.

tokenType String

The type of auth token. Possible types are "Bearer", "MAC", "Basic".

expiry String

Expiry is the optional expiration time of the access token. If zero, TokenSource implementations will reuse the same token forever and RefreshToken or equivalent mechanisms for that TokenSource will not be used.

refreshToken String

RefreshToken is a token that's used by the application (as opposed to the user) to refresh the access token if it expires.

accessToken string

The OAuth2 access token used by the client to authenticate against the Google Cloud API.

tokenType string

The type of auth token. Possible types are "Bearer", "MAC", "Basic".

expiry string

Expiry is the optional expiration time of the access token. If zero, TokenSource implementations will reuse the same token forever and RefreshToken or equivalent mechanisms for that TokenSource will not be used.

refreshToken string

RefreshToken is a token that's used by the application (as opposed to the user) to refresh the access token if it expires.

access_token str

The OAuth2 access token used by the client to authenticate against the Google Cloud API.

token_type str

The type of auth token. Possible types are "Bearer", "MAC", "Basic".

expiry str

Expiry is the optional expiration time of the access token. If zero, TokenSource implementations will reuse the same token forever and RefreshToken or equivalent mechanisms for that TokenSource will not be used.

refresh_token str

RefreshToken is a token that's used by the application (as opposed to the user) to refresh the access token if it expires.

accessToken String

The OAuth2 access token used by the client to authenticate against the Google Cloud API.

tokenType String

The type of auth token. Possible types are "Bearer", "MAC", "Basic".

expiry String

Expiry is the optional expiration time of the access token. If zero, TokenSource implementations will reuse the same token forever and RefreshToken or equivalent mechanisms for that TokenSource will not be used.

refreshToken String

RefreshToken is a token that's used by the application (as opposed to the user) to refresh the access token if it expires.

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0