awslabs / aws-api-gateway-developer-portal

A Serverless Developer Portal for easily publishing and cataloging APIs
Apache License 2.0
932 stars 402 forks source link

Integrating Cognito with Okta requires `Schema` attribute `email` to be mutable #558

Open collen-maxex opened 2 years ago

collen-maxex commented 2 years ago

When integrating Okta as an identity provider with the CognitoUserPool that CloudFormation creates it is required that the Schema defined here is created with Mutable: true. Example:

      Schema:
      - AttributeDataType: String
        Name: email
        Required: true
        Mutable: true

This value cannot be updated after the initial creation of a user pool.

To Reproduce

I have confirmed updating the schema attribute to fix this problem.

This issue may also be helpful. It helped me.

The issue described is forcing me to "fork" the CloudFormation contained in this repository as a workaround which introduces a slew of other problems. For my use case it is not ideal to rely on only Cognito to manage user access to the developer portal since I rely on Okta for everything else.