-
Notifications
You must be signed in to change notification settings - Fork 5.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
Support OAuth2 redirect_uri for Forwarded Header #5535
Comments
…ader. When generating the redirect_uri from the DefaultOAuth2AuthorizationRequestResolver, apply the Forwarded Header to {baseUrl}. Fixed: spring-projectsgh-5535
shouldProcessAuthorizationResponse of OAuth2AuthorizationCodeGrantFilter should be compared to redirect_uri based on Forwarded Header application. Fixed: spring-projectsgh-5535
@mhyeon-lee Thank you very much for your recent contributions! As an FYI, the recommended approach to handle Please see these resources for more detail. Forwarded headers Additional Resources for configuration Proxy Server Configuration Does this make sense? |
I did not know if there was a ForwardedHeaderFilter. I think this filter is very useful if I understand what is right. If you do not need to proceed with this issue any further, you may close it with #5536 PR. |
The Take a look at the javadoc and source for I'm going to close this issue and associated PR as the Thanks again for your contribution! |
I'm going to try this out... I just submitted a related issue as a question to StackOverflow: Sample project: https://github.com/ericis/oauth-cf-https-issue ... I'll report if proposed solution from @jgrandja works for me. |
Worked! https://github.com/ericis/oauth-cf-https-issue I added a basic flag in the example to turn off
|
Summary
When generating the
redirect_uri
from the DefaultOAuth2AuthorizationRequestResolver, apply theForwarded
Header to{baseUrl}
.Also, shouldProcessAuthorizationResponse of OAuth2AuthorizationCodeGrantFilter should be compared to redirect_uri based on Forwarded Header application.
Actual Behavior
Expected Behavior
Sample
The following test fails.
The text was updated successfully, but these errors were encountered: