
[英]Custom attribute not passed into ID_TOKEN created by AWS Cognito
[英]Cognito Authorization with Azure AD SAML integration returns id_token and access_token but no refresh token
我有一个带有 1 个客户端的 Cognito 用户池,该客户端配置了 2 个身份提供程序、 Cognito User Pool
和一个链接 Azure AD 实例的 SAML 提供程序。 Allowed OAuth Flows
设置为仅隐式授予。 通过 Cognito 用户池提供程序登录是使用@aws-sdk/client-cognito-identity-provider
库中的InitiateAuthCommand
完成的。 由此返回一个 id_token、access_token 和刷新令牌。
使用 Cognito 开发人员文档中提供的模板链接通过 SAML 提供商登录 (https://your_Amazon_Cognito_userpool_domain/authorize?response_type=code&identity_provider=your-SAML-IdP-name&client_id=your-client-id&redirect_uri=https://your_application_redirect_url ). 此登录有效,但仅返回 id_token 和 access_token(无刷新令牌)。
如何让 cognito 为通过 SAML 提供商登录的用户颁发刷新令牌
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.