You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 31, 2022. It is now read-only.
On my project we have an UAA on same domain than OAuth2 Sso (via @EnableOauth2Sso).
Moreover to easily deploy application on every possible environment we try to do not have any absolute URLs.
Thus I want to know if is possible and not a no-sense to be able to configure OAuth2 client properties:
security.oauth2.client.accessTokenUri
security.oauth2.client.userAuthorizationUri
as path (!= absolute URL). Even more URI as describe on RFC is different than URL, path is an URI but when setting path I have following error:
java.lang.IllegalArgumentException: [/my/custom/path] is not a valid HTTP URL
at org.springframework.web.util.UriComponentsBuilder.fromHttpUrl(UriComponentsBuilder.java:267) ~[spring-web-4.2.3.RELEASE.jar:4.2.3.RELEASE]
at org.springframework.security.oauth2.client.filter.OAuth2ClientContextFilter.redirectUser(OAuth2ClientContextFilter.java:99) ~[spring-security-oauth2-2.0.8.RELEASE.jar:na]
at org.springframework.security.oauth2.client.filter.OAuth2ClientContextFilter.doFilter(OAuth2ClientContextFilter.java:70) ~[spring-security-oauth2-2.0.8.RELEASE.jar:na]
Because URI is used as URL.
We should:
support URI (or create a interceptor that allow user to customize the way to use the properties)
or rename security.oauth2.client.userAuthorizationUri and security.oauth2.client.accessTokenUri as security.oauth2.client.userAuthorizationUrl and security.oauth2.client.accessTokenUrl
kucharzyk, Triggerself, re6exp, sartan, ex0b1t and 2 moreyabola