Update config checklist to handle multiple sso sources
This commit is contained in:
parent
dd306d59c5
commit
0973394208
|
@ -12,7 +12,7 @@
|
||||||
apps: "Create your first app",
|
apps: "Create your first app",
|
||||||
smtp: "Set up email",
|
smtp: "Set up email",
|
||||||
adminUser: "Create your first user",
|
adminUser: "Create your first user",
|
||||||
oauth: "Set up OAuth",
|
sso: "Set up Single Sign-On",
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
|
@ -206,7 +206,7 @@ exports.configChecklist = async function (ctx) {
|
||||||
})
|
})
|
||||||
|
|
||||||
// They have set up Google Auth
|
// They have set up Google Auth
|
||||||
const oauthConfig = await getScopedFullConfig(db, {
|
const googleConfig = await getScopedFullConfig(db, {
|
||||||
type: Configs.GOOGLE,
|
type: Configs.GOOGLE,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -226,8 +226,7 @@ exports.configChecklist = async function (ctx) {
|
||||||
apps: appDbNames.length,
|
apps: appDbNames.length,
|
||||||
smtp: !!smtpConfig,
|
smtp: !!smtpConfig,
|
||||||
adminUser,
|
adminUser,
|
||||||
oauth: !!oauthConfig,
|
sso: !!googleConfig || !!oidcConfig
|
||||||
oidc: !!oidcConfig,
|
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
ctx.throw(err.status, err)
|
ctx.throw(err.status, err)
|
||||||
|
|
Loading…
Reference in New Issue