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

[BUG] Session Cookie not working in Proxy mode #865

Open
panitaxx opened this issue Nov 29, 2021 · 0 comments
Open

[BUG] Session Cookie not working in Proxy mode #865

panitaxx opened this issue Nov 29, 2021 · 0 comments
Labels
bug Something isn't working triaged

Comments

@panitaxx
Copy link

Describe the bug

The session cookie is not working in proxy mode because it does not gets validated.

To Reproduce
Steps to reproduce the behavior:

  1. request any url using the user, roles and xff headers. take note of the cookie.
  2. request another url using the cookie with xff but without roles,user header -> 401

Expected behavior

Should be authorized

Plugins
default plugins. security plugins.

Host/Environment (please complete the following information):

  • OS: docker ubuntu 20.04
  • Version 1.1.0

Additional context

There are two bugs in the validation of the cookie:

In this line:

should be:

      username: authInfo.user_name,

and in this line:

cookie.authType === this.type &&

should be:

	      cookie.authType === this.authType &&
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triaged
Projects
None yet
Development

No branches or pull requests

3 participants