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 the app users for secure access to AWS resources via my backend server: http://docs.aws.amazon.com/mobile/sdkforios/developerguide/cognito-auth.html#providing-creds
What is the right way to call the AWS Cognito Identity GetOpenIdTokenForDeveloperIdentity service from a rails (version 4.1) server?
This service is not part of the aws-sdk gem.
Cognito is only supported via the the v2 Ruby SDK.
Here is a minimal example for
GetOpenIdTokenForDeveloperIdentity
using the v2 SDK:The response (when successful) will contain an
identity_id
andtoken
for your user, which can be passed back to your mobile application.