Skip to content

Commit

Permalink
Make GRIST_OIDC_SP_HOST really optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Florent FAYOLLE committed Nov 6, 2023
1 parent c9ddd40 commit 67f0a62
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/server/lib/OIDCConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export class OIDCConfig {
}

export async function getOIDCLoginSystem(): Promise<GristLoginSystem|undefined> {
if (!process.env.GRIST_OIDC_SP_HOST) { return undefined; }
if (!process.env.GRIST_OIDC_IDP_ISSUER) { return undefined; }
return {
async getMiddleware(gristServer: GristServer) {
const config = new OIDCConfig();
Expand Down

0 comments on commit 67f0a62

Please sign in to comment.