You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
460 B
10 lines
460 B
import { GristLoginMiddleware, GristServer } from 'app/server/lib/GristServer';
|
|
import { getMinimalLoginMiddleware } from 'app/server/lib/MinimalLogin';
|
|
import { getSamlLoginMiddleware } from 'app/server/lib/SamlConfig';
|
|
|
|
export async function getLoginMiddleware(gristServer: GristServer): Promise<GristLoginMiddleware> {
|
|
const saml = await getSamlLoginMiddleware(gristServer);
|
|
if (saml) { return saml; }
|
|
return getMinimalLoginMiddleware(gristServer);
|
|
}
|