gristlabs_grist-core/stubs/app/server/lib/logins.ts

11 lines
459 B
TypeScript
Raw Normal View History

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();
}