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

Remove feature flag for token exchange

Jan Sandbrinkdba4f4e1afdb
diff --git a/config/initializers/feature_decisions.rb b/config/initializers/feature_decisions.rb
index cc96d6d0033..66c1d9f705a 100644
--- a/config/initializers/feature_decisions.rb
+++ b/config/initializers/feature_decisions.rb
@@ -50,8 +50,3 @@ OpenProject::FeatureDecisions.add :generate_work_package_subjects,
OpenProject::FeatureDecisions.add :stages_and_gates,
description: "Enables the under construction feature of phases."
-
-OpenProject::FeatureDecisions.add :oidc_token_exchange,
- description: "Enables the under construction OAuth2 token exchange, allowing " \
- "users to interact with storage providers without consenting " \
- "in OAuth screens before first use."
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.rb
index 2f7b2ac56ff..82cc91634ca 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
@@ -42,15 +42,13 @@ module OpenIDConnect
)
end
- if OpenProject::FeatureDecisions.oidc_token_exchange_active?
- f.text_field(
- name: :grant_types_supported,
- label: I18n.t("activerecord.attributes.openid_connect/provider.grant_types_supported"),
- disabled: provider.seeded_from_env?,
- required: false,
- input_width: :large
- )
- end
+ f.text_field(
+ name: :grant_types_supported,
+ label: I18n.t("activerecord.attributes.openid_connect/provider.grant_types_supported"),
+ disabled: provider.seeded_from_env?,
+ required: false,
+ input_width: :large
+ )
f.text_field(
name: :icon,
diff --git a/modules/storages/app/components/storages/admin/forms/general_info_form_component.html.erb b/modules/storages/app/components/storages/admin/forms/general_info_form_component.html.erb
index 7f00cae1b0d..048aeb1a5a3 100644
--- a/modules/storages/app/components/storages/admin/forms/general_info_form_component.html.erb
+++ b/modules/storages/app/components/storages/admin/forms/general_info_form_component.html.erb
@@ -32,10 +32,8 @@
render(Storages::Admin::ProviderHostInputForm.new(form))
end
- if OpenProject::FeatureDecisions.oidc_token_exchange_active?
- general_info_row.with_row(mb: 3) do
- render(Storages::Admin::NextcloudAuthenticationMethodInputForm.new(form))
- end
+ general_info_row.with_row(mb: 3) do
+ render(Storages::Admin::NextcloudAuthenticationMethodInputForm.new(form))
end
end
diff --git a/modules/storages/spec/features/storages/admin/create_storage_spec.rb b/modules/storages/spec/features/storages/admin/create_storage_spec.rb
index 4109c66098e..866303b780e 100644
--- a/modules/storages/spec/features/storages/admin/create_storage_spec.rb
+++ b/modules/storages/spec/features/storages/admin/create_storage_spec.rb
@@ -189,7 +189,7 @@ RSpec.describe "Admin Create a new file storage",
end
end
- it "renders a Nextcloud specific multi-step form when using OAuth 2.0 SSO", :webmock, with_flag: :oidc_token_exchange do
+ it "renders a Nextcloud specific multi-step form when using OAuth 2.0 SSO", :webmock do
# Same setup as in default case, but without expectations
visit admin_settings_storages_path