在 AWS 管理控制台中设置属性映射时,需要指定“登录苹果”作为外部身份提供者,并将电子邮件和姓名属性映射到用户池中的对应属性。以下是设置属性映射的示例代码:
AWS CLI 示例:
aws cognito-idp create-identity-provider --user-pool-id --provider-name SignInWithApple --provider-type SignInWithApple --attribute-mapping '{"email":"email","name":"name"}'
AWS CloudFormation 示例:
Type: AWS::Cognito::UserPoolIdentityProvider
Properties:
ProviderName: SignInWithApple
ProviderType: SignInWithApple
UserPoolId: !Ref UserPool
AttributeMapping:
email: email
name: name
上一篇:AWSCognito用户池与Google登录(Google一键登录)集成
下一篇:AWSCognito用户池中,使用C#,我应该在PASSWORD_CLAIM_SECRET_BLOCK参数中放什么?