Skip to content
This repository was archived by the owner on Jun 23, 2023. It is now read-only.

Conversation

peppelinux
Copy link
Member

@peppelinux peppelinux commented Jun 5, 2021

  • BREAKAGE: Cookies flags in cookie_handler.make_cookie_content now are lowercased by default, previously they didn't being correctly loaded by flask and django .set_cookie
  • chore: flask_op views _add_cookie generalization
  • feat: additional cookie_handler parameter called flags to configure whatever cookie flag we desire
  • feat: Cookie default flags SameSite, HttpOnly and Secure set to True by default
  • fix: Documentation about cookie_handler

This PR closes #86

Now flask_op and django_op propely handles cookie with a good security posture, not at least samesite to None and Secure flags, make SSO still working :)

flask_op
flask_op

django-oidc-op
image

* BREAKAGE: Cookies flags in cookie_handler.make_cookie_content now are lowercased by default, they doesn't being correctly loaded by flask and django .set_cookie
* chore: flask_op views _add_cookie generalization
* feat: additional cookie_handler parameter called `flags` to configure whatever cookie flag we desire
* feat: Cookie default flags SameSite, HttpOnly and Secure set to True by default
@peppelinux peppelinux requested review from nsklikas and rohe June 5, 2021 13:39
@nsklikas
Copy link
Contributor

nsklikas commented Jun 7, 2021

lgtm

@peppelinux peppelinux merged commit dc4be5e into develop Jun 7, 2021
@peppelinux peppelinux deleted the cookies branch June 7, 2021 10:33
This was referenced Jun 9, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants