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 regression with legacy redirect patterns #2035

Merged
merged 4 commits into from
Sep 28, 2022
Merged

Conversation

strehle
Copy link
Member

@strehle strehle commented Sep 22, 2022

Port wildcards were working, but because of spring change this fails now Bring it back now with this PR.

Remark: legacy patterns were in past and again now written to log with warnings, so that you see them

Example
WARN --- LegacyRedirectResolver: OAuth client app is configured with a redirect_uri which performs implicit or wildcard matching in legacy redirect uri matching mode. In this instance, the requested uri http://localhost:3000/authentication/callback matches the configured uri http://localhost:*/authentication/callback. Please consider configuring your requested redirect uri to exactly match the redirect_uri for this client.

Port wildcards were working, but because of spring change this fails now
Bring it back now with this PR.

Remark: legacy patterns were in past and again now written to log with warnings, so that you see them

Example
WARN --- LegacyRedirectResolver: OAuth client app is configured with a redirect_uri which performs implicit or wildcard matching in legacy redirect uri matching mode. In this instance, the requested uri http://localhost:3000/authentication/callback matches the configured uri http://localhost:*/authentication/callback. Please consider configuring your requested redirect uri to exactly match the redirect_uri for this client.
@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/183350365

The labels on this github issue will be updated when the story is started.

@strehle
Copy link
Member Author

strehle commented Sep 22, 2022

@torsten-sap this features was requested from SAP but obviously no more clients with port pattern are used, so did you received any issues here ?
The regression must be there since some version.... have to check which spring update caused it but with this PR it should work again

@strehle
Copy link
Member Author

strehle commented Sep 23, 2022

@hsinn0
Copy link
Contributor

hsinn0 commented Sep 27, 2022

Looks good to me, @peterhaochen47, @bruce-ricard.

@strehle strehle merged commit 309feae into develop Sep 28, 2022
@strehle strehle deleted the fix/issue/2030 branch September 28, 2022 04:35
@cf-gitbot cf-gitbot added delivered accepted Accepted the issue and removed delivered labels Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Accepted the issue
Projects
Development

Successfully merging this pull request may close these issues.

Unable to use port wildcard in redirect_uri (RFC 8252)
4 participants