2022-04-04 21:50:40 +00:00
|
|
|
import { getForwardAuthLoginSystem } from 'app/server/lib/ForwardAuthLogin';
|
2021-09-29 15:39:56 +00:00
|
|
|
import { GristLoginSystem } from 'app/server/lib/GristServer';
|
|
|
|
import { getMinimalLoginSystem } from 'app/server/lib/MinimalLogin';
|
|
|
|
import { getSamlLoginSystem } from 'app/server/lib/SamlConfig';
|
2020-07-21 13:20:51 +00:00
|
|
|
|
2021-09-29 15:39:56 +00:00
|
|
|
export async function getLoginSystem(): Promise<GristLoginSystem> {
|
2022-04-04 21:50:40 +00:00
|
|
|
return await getSamlLoginSystem() ||
|
|
|
|
await getForwardAuthLoginSystem() ||
|
|
|
|
await getMinimalLoginSystem();
|
2020-07-21 13:20:51 +00:00
|
|
|
}
|