I am trying to follow the steps to upload files to Amazon S3 from an iOS app.
According to the AWS iOS SDK docs, before uploading, it is required to authenticate th
Cognito is only supported via the the v2 Ruby SDK.
Here is a minimal example for GetOpenIdTokenForDeveloperIdentity
using the v2 SDK:
require 'aws-sdk'
cognito = Aws::CognitoIdentity::Client.new(region:'us-east-1')
resp = cognito.get_open_id_token_for_developer_identity(
identity_pool_id: 'IDENTITY_POOL_ID',
logins: {'MY_PROVIDER_NAME' => 'USER_IDENTIFIER'})
The response (when successful) will contain an identity_id
and token
for your user, which can be passed back to your mobile application.