-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Support resolving issuer from current request #479
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
Comments
@lu-cheng Can you provide more detail on why the issuer needs to be resolved at runtime? Typically, the issuer is a host/domain name and is known at configuration/deployment time. Are you resolving using IP address? Is this for non-production environment? |
@jgrandja Yes, part of the reason is due to environmental issues. If the IP address is fixed, it can be solved by passing parameters at runtime, but when the IP changes frequently and there is no fixed domain name, it is difficult to deal with. The other case is multi-tenancy (saas product), each tenant uses a different subdomain, and the auth-server uses the same set of service instances. At this time, a dynamic issuer is needed. |
Thanks for the details @lu-cheng. |
It would be nice if
When I had setting:
i.e. keycloak changes things in |
Thanks for the additional details @jvalkeal. I'll resolve this soon. |
Another use case, related to #258, is being able to set the issuer to |
@lu-cheng @jvalkeal @markhobson This is now resolved via 666d569. Can you please confirm the enhancement resolves your specific issue? Thanks! |
Hi @jgrandja, thanks for the change! I've tried my authorization server integration tests against 0.2.1-SNAPSHOT and they work fine when omitting the explicit issuer configuration and infer the random port. A couple of 0.2.1 related issues I encountered on upgrading, in case it helps others here:
|
@lu-cheng @jvalkeal @markhobson I've been mulling over the solution provided via 666d569 as I'm not quite happy with it. So I decided to revert the change before the release this week. Unfortunately, it won't make it into |
@lu-cheng @jvalkeal @markhobson This is now resolved via d302444 |
Works for me, thanks @jgrandja! |
The current issuer needs to be set in the configuration, can it be changed to dynamic? Or change ProviderSettings to be extensible.
Refer:ControllerLinkBuilder
The text was updated successfully, but these errors were encountered: