Skip to content

Fix Auth secure dashboard session cookie#37

Open
muhammad-at-sec wants to merge 1 commit into
mainfrom
patch/dashboard-secure-session-cookie
Open

Fix Auth secure dashboard session cookie#37
muhammad-at-sec wants to merge 1 commit into
mainfrom
patch/dashboard-secure-session-cookie

Conversation

@muhammad-at-sec
Copy link
Copy Markdown
Contributor

Summary

Set Secure on the adrian_token cookie when issuing and clearing dashboard sessions so browsers do not send it over non-HTTPS transport.

The clear path mirrors the set-cookie attributes to reliably expire the same cookie scope.

Added login/logout regression assertions for Secure, HttpOnly, and SameSite=Lax cookie attributes.

Test plan

  • [x]

Checklist

  • CLA signed (see CLA.md)
  • Tests pass locally
  • Docs updated where needed
  • British English; no em-dashes; no marketing fluff

Set Secure on the adrian_token cookie when issuing and clearing dashboard sessions so browsers do not send it over non-HTTPS transport.

The clear path mirrors the set-cookie attributes to reliably expire the same cookie scope.

Added login/logout regression assertions for Secure, HttpOnly, and SameSite=Lax cookie attributes.
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.

2 participants