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

Set cookie on successful authentication #70

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

Conversation

mjiderhamn
Copy link

The current implementation has support for reading the auth info from a cookie (named in X-CookieName). This PR adds the ability to also set the value of that same cookie upon successful authentication.

In order to make use of this feature, the following should be added to the Nginx config, in addition to auth_request

  auth_request_set $saved_set_cookie $upstream_http_set_cookie;
  add_header Set-Cookie $saved_set_cookie;

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