Skip to content

Draft: User logged in cookie

Miracle Banks requested to merge logged-in-cookie into master

What does this MR do and why?

We would like to create a first party cookie in the product that will enable the marketing site to recognize a logged in Gitlab user.

Engineering Notes

The user's session ID can be stored in a cookie on the client-side, and sent with each request to the server. The server can then look up the user's session in the database(or API) to determine if they are logged in or not.

This solution was also suggested by a Staff Support Engineer in the #g_manage_auth slack channel

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

image

How to set up and validate locally

  1. Spin up GDK locally
  2. Open Devtools > Application > Cookies
  3. login cookie's value will change from true to false when user logins in and out

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Miracle Banks

Merge request reports

Loading