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
Reword: storage_scope to token_exchange_scope
Jan Sandbrink46afa787396f
diff --git a/modules/storages/app/common/storages/peripherals/connection_validators/nextcloud/authentication_validator.rb b/modules/storages/app/common/storages/peripherals/connection_validators/nextcloud/authentication_validator.rbindex 9e760c7303e..2b94ed781f3 100644--- a/modules/storages/app/common/storages/peripherals/connection_validators/nextcloud/authentication_validator.rb+++ b/modules/storages/app/common/storages/peripherals/connection_validators/nextcloud/authentication_validator.rb@@ -104,7 +104,7 @@ module Storagesenddef token_negotiable- service = OpenIDConnect::UserTokens::FetchService.new(user: @user, exchange_scope: @storage.storage_scope)+ service = OpenIDConnect::UserTokens::FetchService.new(user: @user, exchange_scope: @storage.token_exchange_scope)result = service.access_token_for(audience: @storage.audience)return pass_check(:token_negotiable) if result.success?diff --git a/modules/storages/app/common/storages/peripherals/storage_interaction/authentication_strategies/sso_user_token.rb b/modules/storages/app/common/storages/peripherals/storage_interaction/authentication_strategies/sso_user_token.rbindex 88137f28e8e..3b9147e4f23 100644--- a/modules/storages/app/common/storages/peripherals/storage_interaction/authentication_strategies/sso_user_token.rb+++ b/modules/storages/app/common/storages/peripherals/storage_interaction/authentication_strategies/sso_user_token.rb@@ -43,7 +43,7 @@ module Storagesdef call(storage:, http_options: {}, &)OpenIDConnect::UserTokens::FetchService- .new(user: @user, exchange_scope: storage.storage_scope)+ .new(user: @user, exchange_scope: storage.token_exchange_scope).access_token_for(audience: storage.audience).either(->(token) dodiff --git a/modules/storages/app/controllers/storages/admin/storages_controller.rb b/modules/storages/app/controllers/storages/admin/storages_controller.rbindex 38968ad8dca..b74ef5e6253 100644--- a/modules/storages/app/controllers/storages/admin/storages_controller.rb+++ b/modules/storages/app/controllers/storages/admin/storages_controller.rb@@ -254,8 +254,8 @@ class Storages::Admin::StoragesController < ApplicationControlleroauth_client_secretprovider_typestorage_audience- storage_scopetenant_id+ token_exchange_scope])enddiff --git a/modules/storages/app/forms/storages/admin/storage_audience_input_form.rb b/modules/storages/app/forms/storages/admin/storage_audience_input_form.rbindex 220c9d61296..c4d2a560d98 100644--- a/modules/storages/app/forms/storages/admin/storage_audience_input_form.rb+++ b/modules/storages/app/forms/storages/admin/storage_audience_input_form.rb@@ -62,10 +62,10 @@ module Storages::Admin)toggleable_group.text_field(- name: :storage_scope,- label: I18n.t("activerecord.attributes.storages/nextcloud_storage.storage_scope"),+ name: :token_exchange_scope,+ label: I18n.t("activerecord.attributes.storages/nextcloud_storage.token_exchange_scope"),required: false,- caption: I18n.t("storages.instructions.nextcloud.storage_scope"),+ caption: I18n.t("storages.instructions.nextcloud.token_exchange_scope"),input_width: :large)enddiff --git a/modules/storages/app/models/storages/nextcloud_storage.rb b/modules/storages/app/models/storages/nextcloud_storage.rbindex 3e05cf609c5..dd90a93ec7b 100644--- a/modules/storages/app/models/storages/nextcloud_storage.rb+++ b/modules/storages/app/models/storages/nextcloud_storage.rb@@ -49,7 +49,7 @@ module Storagesstore_attribute :provider_fields, :group_folder, :stringstore_attribute :provider_fields, :authentication_method, :string, default: "two_way_oauth2"store_attribute :provider_fields, :storage_audience, :string- store_attribute :provider_fields, :storage_scope, :string+ store_attribute :provider_fields, :token_exchange_scope, :stringdef oauth_configurationPeripherals::OAuthConfigurations::NextcloudConfiguration.new(self)diff --git a/modules/storages/config/locales/en.yml b/modules/storages/config/locales/en.ymlindex 11c6577b45c..44396864db1 100644--- a/modules/storages/config/locales/en.yml+++ b/modules/storages/config/locales/en.yml@@ -16,7 +16,7 @@ en:oauth2_sso_with_two_way_oauth2_fallback: Single-Sign-On with Two-Way OAuth 2.0 as fallbacktwo_way_oauth2: Two-way OAuth 2.0 authorization code flowstorage_audience: Storage Audience- storage_scope: Storage Scope+ token_exchange_scope: Storage Scopestorages/project_storage:project_folder: Project folderproject_folder_mode: Project folder mode@@ -354,7 +354,7 @@ en:provider_configuration: Please make sure you have administration privileges in your Nextcloud instance and the %{application_link_text} is installed before doing the setup.storage_audience: The client ID that the Nextcloud instance uses to communicate with the identity provider.storage_audience_placeholder: e.g. nextcloud- storage_scope: The scopes that should be requested during token exchange, each one separated by a space.+ token_exchange_scope: The scopes that should be requested during token exchange, each one separated by a space.no_specific_folder: By default, each user will start at their own home folder when they upload a file.no_storage_set_up: There are no file storages set up yet.not_logged_into_storage: To select a project folder, please first login