ElixirTeSS / TeSS

Training e-Support Service using Ruby on Rails.
Other
12 stars 15 forks source link

Change cookie SameSite setting to "Lax" #1015

Closed fbacall closed 3 months ago

fbacall commented 3 months ago

Summary of changes

Motivation and context

LS-Login was broken, because with a SameSite=strict cookie, cookies are not sent immediately following a redirect, so Rails creates a new session for the user which does not have the stored OAuth2 state or nonce, causing verification to fail.

Checklist