gristlabs_grist-core/test/nbrowser
Paul Fitzpatrick 561d9696aa (core) clean up interaction of forward auth with session
Summary:
For self-hosted Grist, forward auth has proven useful, where
some proxy wrapped around Grist manages authentication, and
passes on user information to Grist in a trusted header.
The current implementation is adequate when Grist is the
only place where the user logs in or out, but is confusing
otherwise (see https://github.com/gristlabs/grist-core/issues/207).
Here we take some steps to broaden the scenarios Grist's
forward auth support can be used with:

  * When a trusted header is present and is blank, treat
    that as the user not being logged in, and don't look
    any further for identity information. Specifically,
    don't look in Grist's session information.
  * Add a `GRIST_IGNORE_SESSION` flag to entirely prevent
    Grist from picking up identity information from a cookie,
    in order to avoid confusion between multiple login methods.
  * Add tests for common scenarios.

Test Plan: added tests

Reviewers: georgegevoian

Reviewed By: georgegevoian

Differential Revision: https://phab.getgrist.com/D3482
2022-06-15 13:06:12 -04:00
..
ActionLog.ts (core) Use different user in ActionLog tests 2022-05-05 14:04:03 -07:00
DuplicateDocument.ts (core) move more tests to grist-core 2021-12-10 18:33:07 -05:00
Fork.ts (core) move more tests to grist-core 2021-12-10 18:33:07 -05:00
gristUtils.ts (core) Product update popups and hosted stripe integration 2022-06-08 21:10:49 +02:00
HomeIntro.ts (core) Update design of empty docs home page, and add a "Manage Team" button. 2022-06-03 12:58:57 -04:00
homeUtil.ts (core) Product update popups and hosted stripe integration 2022-06-08 21:10:49 +02:00
Smoke.ts (core) Remove code for unused welcome flows 2022-02-28 13:21:28 -08:00
testServer.ts (core) clean up interaction of forward auth with session 2022-06-15 13:06:12 -04:00
testUtils.ts remove stray redis dependency, and upgrade node in tests (#173) 2022-03-28 15:43:47 -04:00