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

Adding new optional parameter auth_signin URL #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rafaelfelix
Copy link

Thanks a lot for this plugin! Definitely a missing piece on kong's open source ecosystem (after all, the oauth2 plugin won't work in DB-less mode).

The idea of this patch is to check if the HTTP GET to auth_uri returns 401, then the proxy redirects the user to the URL specified in auth_signin. This reproduces the same functionality of https://kubernetes.github.io/ingress-nginx/examples/auth/oauth-external-auth/, thus allowing the use of a single sign-on URL when applicable.

The patch is meant to be backwards-compatible, as the auth_signin parameters is optional.

The idea is to check if the HTTP GET to auth_uri returns 401, then the proxy redirects the user to the URL specified in auth_signin. This reproduces the same functionality of https://kubernetes.github.io/ingress-nginx/examples/auth/oauth-external-auth/
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 this pull request may close these issues.

1 participant