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

add oauth paths to application show

ulferts2bc296f926c3
diff --git a/app/views/oauth/applications/show.html.erb b/app/views/oauth/applications/show.html.erb
index 08e4a2b72a6..e6e181246b7 100644
--- a/app/views/oauth/applications/show.html.erb
+++ b/app/views/oauth/applications/show.html.erb
@@ -109,6 +109,25 @@ See docs/COPYRIGHT.rdoc for more details.
</span>
</div>
</div>
+ <% if [email protected]_credentials_user_id %>
+ <div class="attributes-key-value--key"><%= I18n.t(:'doorkeeper.auth_url') %></div>
+ <div class="attributes-key-value--value-container">
+ <div class="attributes-key-value--value -text">
+ <span>
+ <%= oauth_authorization_url %>
+ </span>
+ </div>
+ </div>
+ <% end %>
+
+ <div class="attributes-key-value--key"><%= I18n.t(:'doorkeeper.access_token_url') %></div>
+ <div class="attributes-key-value--value-container">
+ <div class="attributes-key-value--value -text">
+ <span>
+ <%= oauth_token_url %>
+ </span>
+ </div>
+ </div>
</div>
</div>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index a808e33877d..c4b70b881fa 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -2781,6 +2781,8 @@ en:
doorkeeper:
pre_authorization:
status: 'Pre-authorization'
+ auth_url: 'Auth URL'
+ access_token_url: 'Access token URL'
errors:
messages: