AWS Cognito代币一代OIDC的定制范围
我们正在使用Cognito进行身份验证和会话管理。我们添加了一台外部IDP服务器,该服务器将OAuth用作OIDC身份提供商。对于代币生成,IDP具有不同的范围,可以访问我们服务器所需的各种资源。但是,当使用Cognito作为身份验证机制时,我们无法在Get token呼叫中提供这些范围。有什么办法可以:
- 通过Cognito将特定的范围添加到get token呼叫中的特定范围?
- 如果是的,是否有一种方法可以将访问令牌输入我们的服务器中,以稍后拨打该身份提供商,如果我们想获取有关用户的信息
- ,是否可以跳过访问令牌呼叫并获取授权代码,以便访问令牌可以通过我们的服务器中的自定义代码检索?
- 在获得令牌时执行所有操作时,有没有办法向用户显示同意弹出窗口?
We are using cognito for authentication and session management. We have added one external idp server which uses oauth as OIDC identity provider. For token generation, that IDP has different scopes, which gives access to various resources needed by our server. But when using cognito as authentication mechanism, we are not able provide those scopes in get token call. Is there any way to:
- add specific scopes in get token call to another IDP via cognito?
- If yes, is there a way to get that access token into our server to later call that identity provider if we want to get information about user
- If not, is there a way to skip access token call and get authorization code so that access token can be retrieved by custom code in our server?
- Is there a way to show consent popup to user while doing all this when getting a token?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
AWS Cognito无法做到这一点。为此,我们使用IDP构建了自己的SSO工作流程,然后将自定义处理程序添加到Cognito中。
There was no way to do it in AWS cognito. To do this, we built our own SSO workflow with IDP and then using custom handler added session to cognito.