gristlabs_grist-core/app/server/lib
Paul Fitzpatrick f9630b3aa4 (core) clean up a collection of small problems affecting grist-core
Summary:
 * Remove adjustSession hack, interfering with loading docs under saml.
 * Allow the anonymous user to receive an empty list of workspaces for
   the merged org.
 * Behave better on first page load when org is in path - this used to
   fail because of lack of cookie.  This is very visible in grist-core,
   as a failure to load localhost:8484 on first visit.
 * Mark cookie explicitly as SameSite=Lax to remove a warning in firefox.
 * Make errorPages available in grist-core.

This changes the default behavior of grist-core to now start off in
anonymous mode, with an explicit sign-in step available.  If SAML is not configured,
the sign-in operation will unconditionally sign the user in as a default
user, without any password check or other security.  The user email is
taken from GRIST_DEFAULT_EMAIL if set.  This is a significant change, but
makes anonymous mode available in grist-core (which is convenient
for testing) and makes behavior with and without SAML much more consistent.

Test Plan: updated test; manual (time to start adding grist-core tests though!)

Reviewers: dsagal

Reviewed By: dsagal

Differential Revision: https://phab.getgrist.com/D2980
2021-08-17 21:44:50 -04:00
..
ACLFormula.ts
ActionHistory.ts
ActionHistoryImpl.ts
ActionSummary.ts
ActiveDoc.ts (core) Linking summary tables grouped by list columns 2021-08-10 20:41:24 +02:00
ActiveDocImport.ts
AppEndpoint.ts (core) Adding import from google drive to the home screen 2021-08-05 20:46:11 +02:00
Authorizer.ts (core) clean up a collection of small problems affecting grist-core 2021-08-17 21:44:50 -04:00
BrowserSession.ts (core) revive saml support and test against Auth0 2021-08-16 17:36:09 -04:00
checksumFile.ts
Client.ts
Comm.js
dbUtils.ts
DocApi.ts (core) Add /columns endpoint to DocApi 2021-08-17 23:20:52 +02:00
DocClients.ts
DocManager.ts (core) Adding import from google drive to the home screen 2021-08-05 20:46:11 +02:00
DocPluginData.ts
DocPluginManager.ts (core) Move file import plugins into core/sandbox/grist 2021-08-09 18:37:14 +02:00
DocSession.ts
DocSnapshots.ts
DocStorage.ts
DocStorageManager.ts
docUtils.d.ts
docUtils.js
DocWorker.ts
DocWorkerMap.ts (core) revive saml support and test against Auth0 2021-08-16 17:36:09 -04:00
ExcelFormatter.ts
ExpandedQuery.ts (core) Linking summary tables grouped by list columns 2021-08-10 20:41:24 +02:00
Export.ts
ExportCSV.ts
ExportXLSX.ts
expressWrap.ts
ExternalStorage.ts
extractOrg.ts
FileParserElement.ts
filterUtils.ts
FlexServer.ts (core) clean up a collection of small problems affecting grist-core 2021-08-17 21:44:50 -04:00
GoogleAuth.ts
GoogleExport.ts
GoogleImport.ts (core) Adding google drive plugin as a fallback for url plugin 2021-08-04 17:59:13 +02:00
GranularAccess.ts (core) Linking summary tables grouped by list columns 2021-08-10 20:41:24 +02:00
GristServer.ts (core) clean up a collection of small problems affecting grist-core 2021-08-17 21:44:50 -04:00
gristSessions.ts (core) clean up a collection of small problems affecting grist-core 2021-08-17 21:44:50 -04:00
guessExt.ts
HashUtil.ts
HostedMetadataManager.ts
HostedStorageManager.ts
IBilling.ts
IChecksumStore.ts
ICreate.ts (core) clean up a collection of small problems affecting grist-core 2021-08-17 21:44:50 -04:00
IDocStorageManager.ts
idUtils.ts
IElectionStore.ts
INotifier.ts
ISandbox.ts
IShell.ts
ITestingHooks-ti.ts
ITestingHooks.ts
log.ts
manifest.ts
MinimalLogin.ts (core) clean up a collection of small problems affecting grist-core 2021-08-17 21:44:50 -04:00
NSandbox.ts (core) Move file import plugins into core/sandbox/grist 2021-08-09 18:37:14 +02:00
OnDemandActions.ts
PermissionInfo.ts
Permit.ts (core) revive saml support and test against Auth0 2021-08-16 17:36:09 -04:00
places.ts
PluginEndpoint.ts
PluginManager.ts
requestUtils.ts
RowAccess.ts
SafePythonComponent.ts (core) Move file import plugins into core/sandbox/grist 2021-08-09 18:37:14 +02:00
SamlConfig.ts (core) clean up a collection of small problems affecting grist-core 2021-08-17 21:44:50 -04:00
sandboxUtil.js
sendAppPage.ts
ServerColumnGetters.ts
serverUtils.ts
Sessions.ts (core) clean up a collection of small problems affecting grist-core 2021-08-17 21:44:50 -04:00
Sharing.ts
shortDesc.ts
shutdown.js
SQLiteDB.ts
TagChecker.ts
TestingHooks.ts (core) clean up a collection of small problems affecting grist-core 2021-08-17 21:44:50 -04:00
Throttle.ts
TimeQuery.ts
UnsafeNodeComponent.ts
uploads.ts (core) Adding google drive plugin as a fallback for url plugin 2021-08-04 17:59:13 +02:00
WorkCoordinator.ts