Skip to content

/AWS1/CL_CGI=>GETOPENIDTOKEN()

About GetOpenIdToken

Gets an OpenID token, using a known Cognito ID. This known Cognito ID is returned by GetId. 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.

Method Signature

IMPORTING

Required arguments:

IV_IDENTITYID TYPE /AWS1/CGIIDENTITYID /AWS1/CGIIDENTITYID

A unique identifier in the format REGION:GUID.

Optional arguments:

IT_LOGINS TYPE /AWS1/CL_CGILOGINSMAP_W=>TT_LOGINSMAP TT_LOGINSMAP

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.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_CGIGETOPENIDTOKENRSP /AWS1/CL_CGIGETOPENIDTOKENRSP