How do I use a Cognito token with API?

試著忘記壹切 提交于 2019-12-11 03:25:08

问题


I've successfully signed into an iOS app using Google oAuth and been able to get a Cognito token and ID. Now, I'd like to call a node.js API to perform some action on DynamoDB.

What and how do I pass to my API call? What authentication and suthorisation checks can I perform in the API method itself?

Background: I don't want to expose/leak and details of the underlying storage back to the user so I won't be using DynamoDB, for example, from within the app itself.


回答1:


I've answered this in your post to the AWS Cognito Forum: https://forums.aws.amazon.com/thread.jspa?threadID=160363



来源:https://stackoverflow.com/questions/25732913/how-do-i-use-a-cognito-token-with-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!