Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cognito): callback URLs are specified when OAuth is disabled for user pool clients #10588

Merged
merged 3 commits into from
Sep 30, 2020

Conversation

shivlaks
Copy link
Contributor

When the UserPoolClient property disableOAuth is set, callback URLs should not be
rendered as it represents a list of allowed redirects for identity providers.

Added in a condition that only renders the callback URL default of https://example.com
if OAuth is enabled.

Closes #10311


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

…user pool clients

When the `UserPoolClient` property `disableOAuth` is set, callback URLs should not be
rendered as it represents a list of allowed redirects for identity providers.

Added in a condition that only renders the callback URL default of `https://example.com`
if OAuth is enabled.

Closes #10311
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Sep 29, 2020
@shivlaks shivlaks added the @aws-cdk/aws-cognito Related to Amazon Cognito label Sep 29, 2020
@nija-at nija-at assigned shivlaks and unassigned nija-at Sep 30, 2020
Copy link
Contributor

@nija-at nija-at left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! One small comment.

@mergify
Copy link
Contributor

mergify bot commented Sep 30, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 4d382e0
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify
Copy link
Contributor

mergify bot commented Sep 30, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit fbd48b2 into master Sep 30, 2020
@mergify mergify bot deleted the shivlaks/cognito-callbackurls branch September 30, 2020 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-cognito Related to Amazon Cognito contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[cognito] UserPoolClient CallbackURLs specified when disableOAuth is true
3 participants