Cognito 验证 SAML - 什么是用户名约束?
Cognito validation SAML - what is userName constraint?
我在我的 Cognito 用户池上调用 SAML 授权端点,并且在我通过我的其他提供商登录后,在重定向回我的网站时收到此错误:
Error in SAML response processing: 1 validation error detected: Value ' ... ... ' at 'userName' failed to satisfy constraint: Member must have length less than or equal to 128
这是什么约束?我没有看到有关此特定约束的任何文档。我该如何解决这个问题?
https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-attribute-mapping.html
我想这就是原因:
Currently, only the Facebook id, Google sub, and Login with Amazon user_id attributes can be mapped to the Amazon Cognito User Pools username attribute.
The attribute in the user pool must be large enough to fit the values of the mapped identity provider attributes, or an error occurs when users sign in. Custom attributes should be set to the maximum 2048 character size if mapped to identity provider tokens.
我在我的 Cognito 用户池上调用 SAML 授权端点,并且在我通过我的其他提供商登录后,在重定向回我的网站时收到此错误:
Error in SAML response processing: 1 validation error detected: Value ' ... ... ' at 'userName' failed to satisfy constraint: Member must have length less than or equal to 128
这是什么约束?我没有看到有关此特定约束的任何文档。我该如何解决这个问题?
https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-attribute-mapping.html
我想这就是原因:
Currently, only the Facebook id, Google sub, and Login with Amazon user_id attributes can be mapped to the Amazon Cognito User Pools username attribute.
The attribute in the user pool must be large enough to fit the values of the mapped identity provider attributes, or an error occurs when users sign in. Custom attributes should be set to the maximum 2048 character size if mapped to identity provider tokens.