-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
feat(cognito): user pool client logout urls #10301
Conversation
Great stuff! Thanks @tneely |
* List of allowed logout URLs for the identity providers. | ||
* @default - no logout URLs | ||
*/ | ||
readonly logoutUrls?: string[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason you've added it within OAuthSettings
? AFAICT from the documentation, this isn't related to OAuth.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Callback url and Logout urls are part of the oAuth configuration.
the settings in the UI is under App client settings
(title "What identity providers and OAuth 2.0 settings should be used for your app clients".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
worth mention that CFN user pool clients is flat. but here in CDK I see a structure by oAuth
.
anyhow, logoutUrls should be besides callbarckIUrls that currently inside the oAuth
object.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can make this more inline with the callbackUrls behavior, but I'm
not sure what the intent is behind that logic. Is it needed for the CFn
template to deploy correctly, or are we trying to nudge users towards
using the property because without it you won't be able to sign in/out
properly?
I don't recall which one it was, in this case, but likely so that the template
deploys correctly. In general, in the CDK, we try our best to do both - let
users produce a correct template and guide them towards the correct use
of properties so that the Cognito app is set up correctly.
Could you deploy a cdk app with this value set and report back?
I tried deploying the following resource with and without CallbackURLs and LogoutURLs. The template deploys just fine without LogoutURLs, but gives the following error when CallbackURLs is missing:
|
Pull request has been modified.
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 CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
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). |
Support Logout URLs in UserPoolClient.
This is a pretty minimal change to just allow the property to be set.
fixes: #10225
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license