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

Made OAuth credentials copy button functional

Andreas Pfohl2bcdf51f7a90
diff --git a/modules/storages/app/services/storages/oauth_applications/create_service.rb b/modules/storages/app/services/storages/oauth_applications/create_service.rb
index b8dcdf39ef6..0314e3fd0b9 100644
--- a/modules/storages/app/services/storages/oauth_applications/create_service.rb
+++ b/modules/storages/app/services/storages/oauth_applications/create_service.rb
@@ -48,7 +48,7 @@ module Storages::OAuthApplications
.call({
name: "#{storage.name} (#{I18n.t("storages.provider_types.#{storage.provider_type}")})",
redirect_uri: File.join(storage.host, "apps/integration_openproject/oauth-redirect"),
- scopes: '',
+ scopes: 'api_v3',
confidential: true,
owner: storage.creator,
integration: storage
diff --git a/modules/storages/app/views/storages/admin/storages/show_oauth_application.html.erb b/modules/storages/app/views/storages/admin/storages/show_oauth_application.html.erb
index 3576ca1a994..1c119f2d329 100644
--- a/modules/storages/app/views/storages/admin/storages/show_oauth_application.html.erb
+++ b/modules/storages/app/views/storages/admin/storages/show_oauth_application.html.erb
@@ -9,7 +9,7 @@
label: t('storages.label_oauth_client_id'),
size: 40,
container_class: '-wide',
- disabled: true,
+ readonly: true,
id: 'client_id' %>
<% csp_onclick('this.focus(); this.select();', '#client_id') %>
<copy-to-clipboard click-target=".client-id-copy-button"
@@ -26,7 +26,7 @@
label: t('storages.label_oauth_client_secret'),
size: 40,
container_class: '-wide',
- disabled: true,
+ readonly: true,
id: 'secret' %>
<% csp_onclick('this.focus(); this.select();', '#secret') %>
<copy-to-clipboard click-target=".secret-copy-button"