简体   繁体   English

如何在 AWS SAM 或 Cloudformation 中添加身份提供者

[英]How to add Identity Provider in AWS SAM or Cloudformation

I'm trying yo add an identity provider like described here in my SAM application.我正在尝试添加一个身份提供者,如我SAM 应用程序中所述。

When I run sam deploy I get the following error:当我运行sam deploy时,出现以下错误:

The attribute mapping is missing required attributes [nickname] (Service: AWSCognitoIdentityProviderService; Status Code: 400; Error Code: InvalidParameterException; Request ID: xy; Proxy: null)  

Although in my YAML definition I mapped the attribute nickname as follows:尽管在我的 YAML 定义中,我将属性nickname映射如下:

UserPoolIdentityProvider:
    Type: AWS::Cognito::UserPoolIdentityProvider
    Properties: 
      AttributeMapping:
        given_name: "nickname"
        sub: "username"
        email: "email"
      ProviderDetails:
        ...

check if provider has "nickname" attribute and if pool supports that.检查提供者是否具有“昵称”属性以及池是否支持该属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM