mirror of
https://github.com/gristlabs/grist-core.git
synced 2024-10-27 20:44:07 +00:00
fea8f906d7
Summary: This fleshes out header-based authentication a little more to work with traefik-forward-auth. Test Plan: manually tested Reviewers: georgegevoian Reviewed By: georgegevoian Subscribers: alexmojaki Differential Revision: https://phab.getgrist.com/D3348
11 lines
459 B
TypeScript
11 lines
459 B
TypeScript
import { getForwardAuthLoginSystem } from 'app/server/lib/ForwardAuthLogin';
|
|
import { GristLoginSystem } from 'app/server/lib/GristServer';
|
|
import { getMinimalLoginSystem } from 'app/server/lib/MinimalLogin';
|
|
import { getSamlLoginSystem } from 'app/server/lib/SamlConfig';
|
|
|
|
export async function getLoginSystem(): Promise<GristLoginSystem> {
|
|
return await getSamlLoginSystem() ||
|
|
await getForwardAuthLoginSystem() ||
|
|
await getMinimalLoginSystem();
|
|
}
|