Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Merge pull request #40 from ministryofjustice/ag--document-cookie-magic
Browse files Browse the repository at this point in the history
Add a note in the README regarding the RStudio auth cookie
  • Loading branch information
xoen committed Aug 23, 2018
2 parents 8d4afb4 + 6c3c2fb commit dddee66
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,13 @@ RStudio auth proxy
- `COOKIE_MAXAGE`, maximum age of session cookies in seconds.
Defaults to `3600` seconds (1 hours).
See [`Set-Cookie: MaxAge` documentation](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie)


### RStudio authentication cookie
The proxy sets the `user-id` cookie which is checked by RStudio to determine
whether the user is authenticated or not.

The value of this cookie is constructed in the [`auth.js` module](/app/auth.js).
Read the code for the full implementation details and cookie format.

This cookie is signed so that RStudio can verify that the cookie was not tampered with.

0 comments on commit dddee66

Please sign in to comment.