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

Understanding how session check parameters work #128

Open
sagivoulu opened this issue Jul 1, 2021 · 3 comments
Open

Understanding how session check parameters work #128

sagivoulu opened this issue Jul 1, 2021 · 3 comments

Comments

@sagivoulu
Copy link

I am using lua resty session in an api gateway I am implementing, & I want to include some security features that will block a user from stealing another users session.
I found in the documentation these fields that seem to do what I want:

  • session.check.ssi
  • session.check.ua
  • session.check.addr
  • session.check.schema
    But I am not quite sure how do they work... I couldn't find any segment in the lua-resty-session code that validates the request with these checks...

Can someone explain to me how & where does lua-resty-session actually check that the request came from the same ssl session / user agent / client address / schema?

And what happens if a request does not match one of these parameters?

@bungle
Copy link
Owner

bungle commented Aug 5, 2021

@bungle
Copy link
Owner

bungle commented Aug 5, 2021

@ne4u
Copy link

ne4u commented Oct 30, 2022

would it be possible to get feedback from from session.present as to why a session is not present? EX: tampered cookie, user agent switch, etc...

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

No branches or pull requests

3 participants