-
Notifications
You must be signed in to change notification settings - Fork 4k
Avoid hardcode URL for userAuthorizationUri and accessTokenUri #671
Comments
If you think my point of view is correct I can create |
Today to avoid using hardcode/absolute hostname I have to do following modification:
Thus
|
I'm not sure we can handle any of the zuul or load balancer features here, so maybe you could move the discussion to spring-cloud/spring-cloud-security? |
@dsyer There is a way to transfer issue between project? |
No, but you can paste a link in the other project's issue and it will show up here automatically. |
Let's leave this one open to cover the changes you are asking for in |
But should I open an issue on spring-cloud/spring-cloud-security too? Maybe I will wait you completely finish analysis of https://github.com/kakawait/uaa-behind-zuul-sample before opening something new |
Yes, please, I think that's where the change would have to be made in Spring Cloud. |
@dsyer Is there a change required here? Or is it just in Spring Cloud? Given that the discussion started with |
Yes, some change would be here since it relates to the client filter. (And |
This might be resolved by using https://jira.spring.io/browse/SPR-13614 |
@dsyer Was the relative url change added yet, it would help a lot in our setup. |
There's no change here. If there was you would see the status updated. |
@hsjankie @jgrandja @dsyer I found a solution for That was way more elegant than loopback trick that I experimented on my POC |
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 moreURI
as describe onRFC
is different thanURL
, path is anURI
but when setting path I have following error:Because
URI
is used asURL
.We should:
URI
(or create a interceptor that allow user to customize the way to use the properties)security.oauth2.client.userAuthorizationUri
andsecurity.oauth2.client.accessTokenUri
assecurity.oauth2.client.userAuthorizationUrl
andsecurity.oauth2.client.accessTokenUrl
The text was updated successfully, but these errors were encountered: