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

Render an enterprise banner on SSO page

Jan Sandbrink0da80ee440a1
diff --git a/app/assets/videos/enterprise/sso-login.mp4 b/app/assets/videos/enterprise/sso-login.mp4
new file mode 100644
index 00000000000..64765a7ea4e
Binary files /dev/null and b/app/assets/videos/enterprise/sso-login.mp4 differ
diff --git a/app/views/admin/settings/authentication_settings/_sso.html.erb b/app/views/admin/settings/authentication_settings/_sso.html.erb
index dc8a8697277..59464c5b64c 100644
--- a/app/views/admin/settings/authentication_settings/_sso.html.erb
+++ b/app/views/admin/settings/authentication_settings/_sso.html.erb
@@ -27,36 +27,38 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<%=
- settings_primer_form_with(scope: :settings,
- url: admin_settings_authentication_path(tab: params[:tab]),
- method: :patch) do |f|
- render_inline_settings_form(f) do |form|
- form.select_list(
- name: :omniauth_direct_login_provider,
- input_width: :medium,
- label: I18n.t(:setting_omniauth_direct_login_provider),
- caption: I18n.t(
- "settings.authentication.omniauth_direct_login_hint_html",
- internal_path: internal_signin_url
- ).html_safe,
- include_blank: I18n.t(:label_none_parentheses)
- ) do |select|
- AuthProvider
- .where(available: true)
- .order("lower(display_name) ASC")
- .select(:type, :display_name, :slug)
- .to_a
- .each do |provider|
- select.option(
- value: provider.slug,
- label: "#{provider.display_name} (#{provider.human_type})",
- selected: Setting.omniauth_direct_login_provider == provider.slug
- )
+<% with_enterprise_banner_guard(:sso_auth_providers, variant: :large, video: "enterprise/sso-login.mp4") do %>
+ <%=
+ settings_primer_form_with(scope: :settings,
+ url: admin_settings_authentication_path(tab: params[:tab]),
+ method: :patch) do |f|
+ render_inline_settings_form(f) do |form|
+ form.select_list(
+ name: :omniauth_direct_login_provider,
+ input_width: :medium,
+ label: I18n.t(:setting_omniauth_direct_login_provider),
+ caption: I18n.t(
+ "settings.authentication.omniauth_direct_login_hint_html",
+ internal_path: internal_signin_url
+ ).html_safe,
+ include_blank: I18n.t(:label_none_parentheses)
+ ) do |select|
+ AuthProvider
+ .where(available: true)
+ .order("lower(display_name) ASC")
+ .select(:type, :display_name, :slug)
+ .to_a
+ .each do |provider|
+ select.option(
+ value: provider.slug,
+ label: "#{provider.display_name} (#{provider.human_type})",
+ selected: Setting.omniauth_direct_login_provider == provider.slug
+ )
+ end
end
- end
- form.submit
+ form.submit
+ end
end
- end
-%>
+ %>
+<% end %>
diff --git a/app/views/admin/settings/authentication_settings/show.html.erb b/app/views/admin/settings/authentication_settings/show.html.erb
index b5e2154726c..ad1d845ac9e 100644
--- a/app/views/admin/settings/authentication_settings/show.html.erb
+++ b/app/views/admin/settings/authentication_settings/show.html.erb
@@ -39,7 +39,8 @@ See COPYRIGHT and LICENSE files for more details.
name: :sso,
path: admin_settings_authentication_path(tab: :sso),
label: :"settings.authentication.sso",
- partial: "admin/settings/authentication_settings/sso"
+ partial: "admin/settings/authentication_settings/sso",
+ enterprise_feature: :sso_auth_providers
},
{
name: :registration,
diff --git a/config/locales/en.yml b/config/locales/en.yml
index ebbc635331d..55086b15cb7 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -2226,7 +2226,7 @@ en:
project_list_sharing: Project List Sharing
readonly_work_packages: Readonly Work Packages
scim_api: SCIM server API
- sso_auth_providers: Single sign-on
+ sso_auth_providers: Single Sign-On
team_planner_view: Team Planner View
virus_scanning: Antivirus Scanning
work_package_query_relation_columns: Work Package Query Relation Columns
@@ -2297,6 +2297,9 @@ en:
scim_api:
title: "SCIM clients"
description: "Automate user management in OpenProject by seamlessly integrating external identity services like Microsoft Entra or Keycloak through our SCIM Server API. Available starting with the Enterprise corporate plan."
+ sso_auth_providers:
+ title: "Single Sign-On (SSO)"
+ description: "Enable users to log in via external SSO providers using SAML or OpenID Connect for seamless access and integration with existing identity systems."
virus_scanning:
description: "Ensure uploaded files in OpenProject are scanned for viruses before being accessible by other users."
placeholder_users: