Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Move CSRF implementation into session #1963

Merged
merged 1 commit into from
Mar 31, 2021
Merged

Move CSRF implementation into session #1963

merged 1 commit into from
Mar 31, 2021

Conversation

sethvargo
Copy link
Member

This drops the need for two separate cookies to maintain CSRF and removes a few layers of indirection for CSRF handling. CSRF values are now also tied to session duration.

This intentionally leaves the configuration and secret in place until the next release to provide a seamless transition.

Release Note

Move CSRF implementation into session.

@sethvargo sethvargo requested a review from a team as a code owner March 30, 2021 20:27
@google-cla google-cla bot added the cla: yes Auto: added by CLA bot when all committers have signed a CLA. label Mar 30, 2021
@sethvargo sethvargo enabled auto-merge (squash) March 30, 2021 20:28
This drops the need for two separate cookies to maintain CSRF and removes a few layers of indirection for CSRF handling. CSRF values are now also tied to session duration.

This intentionally leaves the configuration and secret in place until the _next_ release to provide a seamless transition.
@sethvargo sethvargo merged commit 761ca06 into main Mar 31, 2021
@sethvargo sethvargo deleted the sethvargo/csrf branch March 31, 2021 17:36
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Auto: added by CLA bot when all committers have signed a CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants