[英]Using AWS Cognito Hosted UI (Code Grant) what do I do with the token once it is verified? Subsequent API Calls do not have the token
MY goal is to setup the Cognito Hosted UI to validate users after login.我的目标是设置 Cognito Hosted UI 以在登录后验证用户。 I have followed the steps laid out in the OAuth2 blog here: https://developer.okta.com/blog/2018/04/10/oauth-authorization-code-grant-type我已按照 OAuth2 博客中列出的步骤操作: https : //developer.okta.com/blog/2018/04/10/oauth-authorization-code-grant-type
My steps are as follows.我的步骤如下。
This stream works but then what?这个流有效,但是然后呢? I want to validate the AWS token for each API call but I have no idea how to access the token.我想为每个 API 调用验证 AWS 令牌,但我不知道如何访问令牌。
I am guessing that I am either missing the point of this procedure or that the token is somewhere I am unaware of.我猜我要么错过了这个过程的重点,要么令牌在我不知道的地方。
Any help would be greatly appreciated.任何帮助将不胜感激。
Usually you have your own UI that redirects to Cognito to authenticate, after which the UI sends the access token to the API on every request.通常,您有自己的 UI,该 UI 重定向到 Cognito 进行身份验证,之后 UI 会在每次请求时将访问令牌发送到 API。
All of the code samples on my Quick Start Page work like this and use Cognito.我的快速入门页面上的所有代码示例都像这样工作并使用 Cognito。
If it helps, this is what the OAuth Technical Messages look like.如果有帮助,这就是OAuth 技术消息的样子。 Feel free to ask any follow up questions随时提出任何后续问题
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.