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';
|
2023-11-09 19:56:39 +00:00
|
|
|
import { getOIDCLoginSystem } from 'app/server/lib/OIDCConfig';
|
2021-09-29 15:39:56 +00:00
|
|
|
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() ||
|
2023-11-09 19:56:39 +00:00
|
|
|
await getOIDCLoginSystem() ||
|
2022-04-04 21:50:40 +00:00
|
|
|
await getForwardAuthLoginSystem() ||
|
|
|
|
await getMinimalLoginSystem();
|
2020-07-21 13:20:51 +00:00
|
|
|
}
|