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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Add backchannel and attribute mapping for oidc
Oliver Güntherc7c2f679c7f0
diff --git a/docs/installation-and-operations/misc/custom-openid-connect-providers/README.md b/docs/installation-and-operations/misc/custom-openid-connect-providers/README.mdindex c29492797b0..7092612296c 100644--- a/docs/installation-and-operations/misc/custom-openid-connect-providers/README.md+++ b/docs/installation-and-operations/misc/custom-openid-connect-providers/README.md@@ -69,7 +69,7 @@ Setting.plugin_openproject_openid_connect = Hash(Setting.plugin_openproject_open})```-Replace "okta" with any other value such as "keycloak". It is used in some URLs so keep it a plain lowercase string.+Replace "okta" with any other value such as "keycloak". It is used as the identifier in some URLs so keep it a plain lowercase string.Just copy these lines into the console and again confirm using *Enter*.After you are done you can leave the console by entering `exit`.@@ -123,6 +123,27 @@ Setting.plugin_openproject_openid_connect = Hash(Setting.plugin_openproject_openAt the time of writing the known providers are: `azure`, `google`, `okta`+### Attribute mapping++You can override the default attribute mapping for values derived from the userinfo endpoint. For example, let's map the OpenProject login to the claim `preferred_username` that is sent by many OIDC providers.++```+options = {+ # ... other options+ attribute_map: {+ 'login' => 'preferred_username'+ }+}+```++++### Back-channel logout++OpenProject OIDC integration supports [back-channel logouts](https://openid.net/specs/openid-connect-backchannel-1_0.html) if OpenProject is configured for ActiveRecord based sessions (which is the default).++On the identity provider side, you need to set `https://<OpenProject host>/auth/<provider>/backchannel-logout`. `<provider>` is the identifier of the OIDC configuration as provided above.+### ClaimsYou can also request [claims](https://openid.net/specs/openid-connect-core-1_0-final.html#Claims) for both the id_token and userinfo endpoint.