View Source GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials (google_api_integrations v0.10.0)

For resource owner credentials grant, the client will ask the user for their authorization credentials (ususally a username and password) and send a POST request to the authorization server. The authorization server will respond with a JSON object containing the access token.

Attributes

  • accessToken (type: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAccessToken.t, default: nil) - Access token fetched from the authorization server.
  • clientId (type: String.t, default: nil) - The client's ID.
  • clientSecret (type: String.t, default: nil) - The client's secret.
  • password (type: String.t, default: nil) - The user's password.
  • requestType (type: String.t, default: nil) - Represent how to pass parameters to fetch access token
  • scope (type: String.t, default: nil) - A space-delimited list of requested scope permissions.
  • tokenEndpoint (type: String.t, default: nil) - The token endpoint is used by the client to obtain an access token by presenting its authorization grant or refresh token.
  • tokenParams (type: GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMap.t, default: nil) - Token parameters for the auth request.
  • username (type: String.t, default: nil) - The user's username.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaOAuth2ResourceOwnerCredentials{
    accessToken:
      GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaAccessToken.t()
      | nil,
    clientId: String.t() | nil,
    clientSecret: String.t() | nil,
    password: String.t() | nil,
    requestType: String.t() | nil,
    scope: String.t() | nil,
    tokenEndpoint: String.t() | nil,
    tokenParams:
      GoogleApi.Integrations.V1alpha.Model.GoogleCloudIntegrationsV1alphaParameterMap.t()
      | nil,
    username: String.t() | nil
  }

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.