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

Use default scopes as default value, not as placeholder

Jan Sandbrinkbd12cb8b91b6
diff --git a/modules/openid_connect/app/components/openid_connect/providers/client_details_form.rb b/modules/openid_connect/app/components/openid_connect/providers/client_details_form.rb
index 609c3304381..88731db4091 100644
--- a/modules/openid_connect/app/components/openid_connect/providers/client_details_form.rb
+++ b/modules/openid_connect/app/components/openid_connect/providers/client_details_form.rb
@@ -53,7 +53,6 @@ module OpenIDConnect
f.text_field(
name: :scope,
label: I18n.t("activemodel.attributes.openid_connect/provider.scope"),
- placeholder: "openid email profile",
caption: link_translate(
"openid_connect.instructions.scope",
links: {
diff --git a/modules/openid_connect/app/models/openid_connect/provider.rb b/modules/openid_connect/app/models/openid_connect/provider.rb
index 158729ea15d..ae0046f75b7 100644
--- a/modules/openid_connect/app/models/openid_connect/provider.rb
+++ b/modules/openid_connect/app/models/openid_connect/provider.rb
@@ -33,7 +33,7 @@ module OpenIDConnect
store_attribute :options, :scheme, :string
store_attribute :options, :port, :string
- store_attribute :options, :scope, :string
+ store_attribute :options, :scope, :string, default: "openid email profile"
store_attribute :options, :claims, :string
store_attribute :options, :acr_values, :string