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
Allow custom icon
Oliver Günther4e897fb17e9b
diff --git a/modules/openid_connect/app/components/openid_connect/providers/metadata_details_form.rb b/modules/openid_connect/app/components/openid_connect/providers/metadata_details_form.rbindex 49702255ae7..ec28d450750 100644--- a/modules/openid_connect/app/components/openid_connect/providers/metadata_details_form.rb+++ b/modules/openid_connect/app/components/openid_connect/providers/metadata_details_form.rb@@ -39,6 +39,15 @@ module OpenIDConnectinput_width: :large)end++ f.text_field(+ name: :icon,+ label: I18n.t("activemodel.attributes.openid_connect/provider.icon"),+ caption: I18n.t("saml.instructions.icon"),+ disabled: provider.seeded_from_env?,+ required: false,+ input_width: :large+ )endendenddiff --git a/modules/openid_connect/app/models/openid_connect/provider.rb b/modules/openid_connect/app/models/openid_connect/provider.rbindex 692eb681682..17e50f95aea 100644--- a/modules/openid_connect/app/models/openid_connect/provider.rb+++ b/modules/openid_connect/app/models/openid_connect/provider.rb@@ -16,6 +16,7 @@ module OpenIDConnectstore_attribute :options, :oidc_provider, :stringstore_attribute :options, :metadata_url, :string+ store_attribute :options, :icon, :stringDISCOVERABLE_ATTRIBUTES_ALL.each do |attribute|store_attribute :options, attribute, :string@@ -52,8 +53,6 @@ module OpenIDConnectbasic_details_configured? && advanced_details_configured? && metadata_configured?end--def iconcase oidc_providerwhen "google"@@ -61,7 +60,7 @@ module OpenIDConnectwhen "microsoft_entra""openid_connect/auth_provider-azure.png"else- "openid_connect/auth_provider-custom.png"+ super.presence || "openid_connect/auth_provider-custom.png"endendenddiff --git a/modules/openid_connect/config/locales/en.yml b/modules/openid_connect/config/locales/en.ymlindex 83965c96b13..652bdf07f3e 100644--- a/modules/openid_connect/config/locales/en.yml+++ b/modules/openid_connect/config/locales/en.yml@@ -23,6 +23,7 @@ en:issuer: Issuertenant: Tenantmetadata_url: Metadata URL+ icon: Custom iconactiverecord:errors:models: