Connector redirectURI restriction? #3455
Unanswered
zenarcher007
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The issue I am having is similar to this issue, in that the redirectURI of (of most connectors; assume oidc in this case), is not allowed to differ from the callback domain of the issuer URL.
Specifically, in the function "LoginURLs" of [oidc.go, for instance], I am wondering about these lines:
For instance, consider this (simplified) dex-config.yaml:
From my understanding, such a configuration would make sense both in that this a minimally-changed configuration from the (functioning) default, in that effectively, only the "connectors" section is added, and that it should inherently be more secure for Dex to communicate more within the cluster's internal network as opposed to making additional requests "externally". As I would guess that both function parameters would be passed based only on configuration values, my impression was that this explicit check mainly exists to prevent a misconfiguration, although it is possible that there could be something I am not understanding.
In my case, I researched and tried many attempts at working around this, and eventually decided to modify the source code and change this error into a warning that does not return from the function and rebuild, which solved all of my login issues. My questions are:
a) Are there specific reasons for having this check that I should understand?
b) Are there any security implications for removing the explicit requirement that the issuer and redirect URLs must be similar in the code?
Beta Was this translation helpful? Give feedback.
All reactions