Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Improve ENV documentation for SAML

Oliver Günthere8d872e3893a
diff --git a/docs/system-admin-guide/authentication/saml/README.md b/docs/system-admin-guide/authentication/saml/README.md
index e5809ab0974..7d841848c63 100644
--- a/docs/system-admin-guide/authentication/saml/README.md
+++ b/docs/system-admin-guide/authentication/saml/README.md
@@ -48,13 +48,16 @@ The following is an exemplary file with a set of common settings:
```yaml
saml:
+ # Name of the provider, leave this at saml unless you use multiple providers
name: "saml"
+ # The name that will be display in the login button
display_name: "My SSO"
# Use the default SAML icon
icon: "auth_provider-saml.png"
- # omniauth-saml config
+ # The callback within OpenProject that your idP should redirect to
assertion_consumer_service_url: "https://<YOUR OPENPROJECT HOSTNAME>/auth/saml/callback"
+ # The SAML issuer string that OpenProject will call your idP with
issuer: "https://<YOUR OPENPROJECT HOSTNAME>"
# IF your SSL certificate on your SSO is not trusted on this machine, you need to add it here in ONE line
@@ -65,10 +68,10 @@ saml:
# Either `idp_cert` or `idp_cert_fingerprint` must be present!
idp_cert_fingerprint: "E7:91:B2:E1:..."
- # Replace with your single sign on URL
+ # Replace with your redirect flow single sign on URL
# For example: "https://sso.example.com/saml/singleSignOn"
idp_sso_target_url: "<YOUR SSO URL>"
- # Replace with your single sign out URL
+ # Replace with your redirect flow single sign out URL
# or comment out
# For example: "https://sso.example.com/saml/proxySingleLogout"
idp_slo_target_url: "<YOUR SSO logout URL>"
@@ -94,10 +97,39 @@ As with [all the rest of the OpenProject configuration settings](../../../instal
E.g.
```bash
-OPENPROJECT_SAML_MY__SAML_NAME="your-provider-name"
-OPENPROJECT_SAML_MY__SAML_DISPLAY__NAME="My SAML provider"
-...
-OPENPROJECT_SAML_MY__SAML_ATTRIBUTE__STATEMENTS_ADMIN="['openproject-isadmin']"
+# Name of the provider, leave this at saml unless you use multiple providers
+OPENPROJECT_SAML_SAML_NAME="saml"
+
+# The name that will be display in the login button
+OPENPROJECT_SAML_SAML_DISPLAY__NAME=">Name of the login button>"
+
+# The callback within OpenProject that your idP should redirect to
+OPENPROJECT_SAML_SAML_ASSERTION__CONSUMER__SERVICE__URL="https://<openproject.host>/auth/saml/callback"
+
+# The SAML issuer string that OpenProject will call your idP with
+OPENPROJECT_SAML_SAML_ISSUER="https://<openproject.host>"
+
+# IF your SSL certificate on your SSO is not trusted on this machine, you need to add it here in ONE line
+### one liner to generate certificate in ONE line
+### awk 'NF {sub(/\r/, ""); printf "%s\\n",$0;}' <yourcert.pem>
+#idp_cert: "-----BEGIN CERTIFICATE-----\n ..... SSL CERTIFICATE HERE ...-----END CERTIFICATE-----\n"
+# Otherwise, the certificate fingerprint must be added
+# Either `OPENPROJECT_SAML_SAML_IDP__CERT` or `OPENPROJECT_SAML_SAML_IDP__CERT__FINGERPRINT` must be present!
+OPENPROJECT_SAML_SAML_IDP__CERT="-----BEGIN CERTIFICATE-----<cert one liner>-----END CERTIFICATE-----"
+OPENPROJECT_SAML_SAML_IDP__CERT__FINGERPRINT="da:39:a3:ee:5e:6b:4b:0d:32:55:bf:ef:95:60:18:90:af:d8:07:09"
+# Replace with your single sign on URL
+OPENPROJECT_SAML_SAML_IDP__SSO__TARGET__URL="https://<auth.host>/application/saml/vjdyzjls/sso/binding/post/"
+
+# (Optinal) Replace with your redirect flow single sign out URL that we should redirect to
+OPENPROJECT_SAML_SAML_IDP__SLO__TARGET__URL=""
+
+#
+# Which SAMLAttribute we should look for for the corresponding attributes of OpenProject
+# can be a string or URI/URN depending on our idP format
+OPENPROJECT_SAML_SAML_ATTRIBUTE__STATEMENTS_EMAIL="mail"
+OPENPROJECT_SAML_SAML_ATTRIBUTE__STATEMENTS_LOGIN="mail"
+OPENPROJECT_SAML_SAML_ATTRIBUTE__STATEMENTS_FIRST__NAME="givenName"
+OPENPROJECT_SAML_SAML_ATTRIBUTE__STATEMENTS_LAST__NAME="sn"
```
Please note that every underscore (`_`) in the original configuration key has to be replaced by a duplicate underscore