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 logout URL to sidepanel
Jan Sandbrinkdd8dbe479303
diff --git a/modules/openid_connect/app/components/openid_connect/providers/side_panel/information_component.html.erb b/modules/openid_connect/app/components/openid_connect/providers/side_panel/information_component.html.erbindex e42e7a7c121..cb5307235ff 100644--- a/modules/openid_connect/app/components/openid_connect/providers/side_panel/information_component.html.erb+++ b/modules/openid_connect/app/components/openid_connect/providers/side_panel/information_component.html.erb@@ -19,6 +19,14 @@collection.with_component(OpPrimer::CopyToClipboardComponent.new(provider.callback_url, scheme: :input))++ collection.with_component(Primer::Beta::Heading.new(tag: :h5, mt: 4, mb: 1)) do+ t(".backchannel_logout_url")+ end++ collection.with_component(+ OpPrimer::CopyToClipboardComponent.new(provider.backchannel_logout_url, scheme: :input)+ )endend%>diff --git a/modules/openid_connect/app/models/openid_connect/provider.rb b/modules/openid_connect/app/models/openid_connect/provider.rbindex 1d567d35431..18370d19bb6 100644--- a/modules/openid_connect/app/models/openid_connect/provider.rb+++ b/modules/openid_connect/app/models/openid_connect/provider.rb@@ -142,6 +142,10 @@ module OpenIDConnect(scope || "").splitend+ def backchannel_logout_url+ URI.join(auth_url, "backchannel-logout").to_s+ end+def group_matchersif group_prefixes.present?group_prefixes.map { |p| Regexp.new("^#{Regexp.escape(p)}(.+)$") }diff --git a/modules/openid_connect/config/locales/en.yml b/modules/openid_connect/config/locales/en.ymlindex f13294da788..2b33aab0a0c 100644--- a/modules/openid_connect/config/locales/en.yml+++ b/modules/openid_connect/config/locales/en.yml@@ -133,6 +133,9 @@ en:display_name: The display name visible to users.attribute_mapping: Configure the mapping of attributes between OpenProject and the OpenID Connect provider.claims: Request additional claims for the ID token or userinfo response.+ side_panel:+ information_component:+ backchannel_logout_url: Backchannel logout URLsetting_instructions:limit_self_registration: >If enabled users can only register using this provider if the self registration setting allows for it.