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> {
|
|
|
|
const saml = await getSamlLoginSystem();
|
2021-08-16 15:11:17 +00:00
|
|
|
if (saml) { return saml; }
|
2021-09-29 15:39:56 +00:00
|
|
|
return getMinimalLoginSystem();
|
2020-07-21 13:20:51 +00:00
|
|
|
}
|
2022-02-11 06:03:30 +00:00
|
|
|
|
|
|
|
export function getLoginSubdomain(): string | null {
|
|
|
|
return null;
|
|
|
|
}
|