working on sso
This commit is contained in:
15
sso.js.tmpl
Normal file
15
sso.js.tmpl
Normal 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" }}"
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user