Amazon.CognitoIdentity.AmazonCognitoIdentityClient.GetOpenIdToken C# (CSharp) Method

GetOpenIdToken() public method

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 15 minutes.

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

/// An exception thrown when a dependent service such as Facebook or Twitter is not responding /// /// Thrown when the service encounters an error during processing the request. /// /// Thrown for missing or bad input parameter(s). /// /// Thrown when a user is not authorized to access the requested resource. /// /// Thrown when a user tries to use a login which is already linked to another account. /// /// Thrown when the requested resource (for example, a dataset or record) does not exist. /// /// Thrown when a request is throttled. ///
public GetOpenIdToken ( GetOpenIdTokenRequest request ) : GetOpenIdTokenResponse
request GetOpenIdTokenRequest Container for the necessary parameters to execute the GetOpenIdToken service method.
return GetOpenIdTokenResponse
        public GetOpenIdTokenResponse GetOpenIdToken(GetOpenIdTokenRequest request)
        {
            var marshaller = new GetOpenIdTokenRequestMarshaller();
            var unmarshaller = GetOpenIdTokenResponseUnmarshaller.Instance;

            return Invoke<GetOpenIdTokenRequest,GetOpenIdTokenResponse>(request, marshaller, unmarshaller);
        }

Same methods

AmazonCognitoIdentityClient::GetOpenIdToken ( string identityId ) : GetOpenIdTokenResponse

Usage Example

 private GetOpenIdTokenResponse GetOpenId(GetOpenIdTokenRequest getTokenRequest)
 {
     return(cib.GetOpenIdToken(getTokenRequest));
 }
AmazonCognitoIdentityClient