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

Always respect the provided session token in Load() #238

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

Conversation

petrikero
Copy link

This PR fixes an issue in Load() where the the provided session token is not stored in the sessionData if the session state wasn't found in the store. With this change, the token is always used, if provided by the user.

This is important because it allows the user to take full control over the session tokens used. In my use case, I have incoming M2M requests from other systems and CLIs that cannot easily support cookie jars in the client but rather identify the request with JWT bearer tokens. I then derive session IDs from these tokens to store the session state on the server between the requests.

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