Skip to content

Can I get rid of oauth2-proxy? External oauth with ingress-nginx #2820

Answered by nabokihms
jkroepke asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, @jkroepke. Unfortunately, but no. It is not possible to just remove oauth2-proxy. It does two important things.

  1. Stores tokens in cookies.
  2. Uses cookies to authenticate you internally. If you have a cookie with a valid token, the proxy will respond with a 200 code, and if not, you will receive 401.

Because of this behavior, the oauth2 proxy can be combined with the nginx auth module. Dex is not capable of both of these things because it is out of the scope of an OIDC provider. Oauth2 proxy is a helper for those relying parties, who cannot work with the oauth2 flow on their own.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by nabokihms
Comment options

You must be logged in to vote
1 reply
@jkroepke
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants