Skip to content

Get Open Id Token

cognitoidentity_get_open_id_token R Documentation

Gets an OpenID token, using a known Cognito ID

Description

Gets an OpenID token, using a known Cognito ID. This known Cognito ID is returned by get_id. You can optionally add additional logins for the identity. Supplying multiple logins creates an implicit link.

The OpenID token is valid for 10 minutes.

This is a public API. You do not need any credentials to call this API.

Usage

cognitoidentity_get_open_id_token(IdentityId, Logins)

Arguments

IdentityId

[required] A unique identifier in the format REGION:GUID.

Logins

A set of optional name-value pairs that map provider names to provider tokens. When using graph.facebook.com and www.amazon.com, supply the access_token returned from the provider's authflow. For accounts.google.com, an Amazon Cognito user pool provider, or any other OpenID Connect provider, always include the id_token.

Value

A list with the following syntax:

list(
  IdentityId = "string",
  Token = "string"
)

Request syntax

svc$get_open_id_token(
  IdentityId = "string",
  Logins = list(
    "string"
  )
)