Files
cryptpad/sso.js.tmpl
2026-02-28 16:52:32 -05:00

16 lines
540 B
Cheetah

// 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" }}"
}
};