GoogleApi.STS.V1.Model.GoogleIdentityStsV1ExchangeTokenResponse (google_api_sts v0.3.1) View Source

Response message for ExchangeToken.

Attributes

  • access_token (type: String.t, default: nil) - An OAuth 2.0 security token, issued by Google, in response to the token exchange request. Tokens can vary in size, depending in part on the size of mapped claims, up to a maximum of 12288 bytes (12 KB). Google reserves the right to change the token size and the maximum length at any time.
  • expires_in (type: integer(), default: nil) - The amount of time, in seconds, between the time when the access token was issued and the time when the access token will expire. This field is absent when the subject_token in the request is a Google-issued, short-lived access token. In this case, the access token has the same expiration time as the subject_token.
  • issued_token_type (type: String.t, default: nil) - The token type. Always matches the value of requested_token_type from the request.
  • token_type (type: String.t, default: nil) - The type of access token. Always has the value Bearer.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.STS.V1.Model.GoogleIdentityStsV1ExchangeTokenResponse{
  access_token: String.t(),
  expires_in: integer(),
  issued_token_type: String.t(),
  token_type: String.t()
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.