Skip to content
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

Configurable token endpoint URL for Dex IDP #3080

Open
2 tasks done
praveenjindal62 opened this issue Aug 18, 2023 · 0 comments · May be fixed by #3081
Open
2 tasks done

Configurable token endpoint URL for Dex IDP #3080

praveenjindal62 opened this issue Aug 18, 2023 · 0 comments · May be fixed by #3081

Comments

@praveenjindal62
Copy link

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.

Problem Description

We are running Dex IDP (with authproxy connector) behind a reverse proxy (Oauth2) and Istio service mesh. All the users are authenticated via Azure AD using reverse proxy which will carry user headers to Dex IDP to generate a OIDC token for some of our application. In this process, Application try to capture token using /token url of Dex but because of reverse proxy, application is not able to make request to /token as request need authorization from oauth2-proxy.

For work around we have configured skip-auth-routes in our reverse-proxy to disable Authn/Authz requirement on specific set of requests are URLs

  • /token
  • /keys
  • /.well-known/openid-configuration

With skip-auth-routes, whole user journey is working fine. But we don't want to expose these endpoints in skip-auth-route and ever more specifically token endpoint i.e. /token as it can be used by attacker to create unauthorized token and may allow them to gain access to our application.

Proposed Solution

Make token endpoint URL configurable just like Issuer URL.

We would like to configure that URL with internal kubernetes URL, so application can connect to token endpoint URL internal to kubernetes without the requirement of Authn/Authz via Istio Gateway and reverse proxy.

Alternatives Considered

No response

Additional Information

I am happy to submit a PR if feature request is found useful and approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant