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

Add MaxLength #8

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

mmyoungman
Copy link

Hi,

Thanks for writing sqlitestore.

I had been hitting this issue while using openid-connect`as a provider with goth: markbates/goth#133

The solution is to increase the size of SecureCookies, which default to 4096. To do this with sqlitestore, I've added a new MaxLength method. This is basically a copy from github.com/gorilla/sessions's FilesystemStore's MaxLength: https://github.com/gorilla/sessions/blob/466d29e7f343560836292b7c922e1385e908ef95/store.go#L173

Staticcheck was showing a couple of warnings, so I also fixed them.

Thanks,
Mark

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