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

microsoftonline: gzip of cookie no longer enough #448

Open
mediumdaver opened this issue Feb 26, 2022 · 2 comments
Open

microsoftonline: gzip of cookie no longer enough #448

mediumdaver opened this issue Feb 26, 2022 · 2 comments

Comments

@mediumdaver
Copy link

I am getting the infamous "securecookie: the value is too long" error when using Microsoft online provider. It seems that the returned data, even after gzip compression, is coming in at around 3,974 bytes and failing to be set.

We need a new mechanism, perhaps using web storage or splitting the cookie into parts?

@dobin
Copy link

dobin commented Mar 7, 2022

I have the same issue when using azureadv2 authentication provider.

Edit: I also dont use the goth cookies. I disabled it like this, but maybe there's a better solution:

	store := sessions.NewFilesystemStore("", []byte("fsstore"))
	gothic.Store = store

@joriszwart
Copy link
Contributor

joriszwart commented Sep 1, 2022

@dobin: see my comment in #463 (comment) for a possible solution increasing the maximum size.

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