Skip to content

Cannot set redirect url/template for Webfulx OAuth2 #6482

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

Closed
bdemers opened this issue Jan 25, 2019 · 2 comments
Closed

Cannot set redirect url/template for Webfulx OAuth2 #6482

bdemers opened this issue Jan 25, 2019 · 2 comments
Assignees
Labels
status: duplicate A duplicate of another issue

Comments

@bdemers
Copy link
Contributor

bdemers commented Jan 25, 2019

Summary

ServerHttpSecurity does NOT have a method to set the OAuth (auth code flow) redirect URI/template.

The equivalent for HttpSecurity is:

http.oauth2Login().redirectionEndpoint().baseUri("/some/path/here")

It looks like the default patterns are hardcoded.

I was expecting the OAuth2 config to be similar between HttpSecurity and ServerHttpSecurity

Version

5.1.4

If I'm just not seeing the correct method to set this let me know!

@jgrandja jgrandja self-assigned this Jan 25, 2019
@jgrandja
Copy link
Contributor

@bdemers This configuration option was added just this week via #5598.

See OAuth2LoginSpec.authenticationMatcher(ServerWebExchangeMatcher authenticationMatcher).

Note: This is only available in master which is 5.2.x.

I'll close this issue but we can reopen if you require further assistance.

@jgrandja jgrandja added the status: duplicate A duplicate of another issue label Jan 25, 2019
@bdemers
Copy link
Contributor Author

bdemers commented Jan 25, 2019

Sweet! my search-fu failed me :)

Thanks again @jgrandja !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate A duplicate of another issue
Projects
None yet
Development

No branches or pull requests

2 participants