working on sso

This commit is contained in:
notplants
2026-02-28 16:52:32 -05:00
parent db049838e9
commit 61b41e2866
5 changed files with 83 additions and 0 deletions

15
sso.js.tmpl Normal file
View File

@ -0,0 +1,15 @@
// CryptPad SSO configuration — generated from environment variables
// See https://github.com/cryptpad/sso for documentation
module.exports = {
enabled: "{{ env "SSO_ENABLED" }}" === "true",
enforced: "{{ env "SSO_ENFORCED" }}" === "true",
protocol: "oidc",
providerName: "{{ env "SSO_PROVIDER_NAME" }}",
oidcConfig: {
url: "{{ env "SSO_OIDC_URL" }}",
clientID: "{{ env "SSO_CLIENT_ID" }}",
clientSecret: "{{ env "SSO_CLIENT_SECRET" }}",
algorithm: "{{ env "SSO_JWT_ALG" }}"
}
};