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

Show identity_url in user administration

Oliver Günthere72119642592
diff --git a/app/views/users/form/authentication/_external.html.erb b/app/views/users/form/authentication/_external.html.erb
index d901a77ba6e..423cbaa5a55 100644
--- a/app/views/users/form/authentication/_external.html.erb
+++ b/app/views/users/form/authentication/_external.html.erb
@@ -1,4 +1,4 @@
-<div class="form--field">
+<div class="form--field -reduced-margin">
<%= styled_label_tag nil, I18n.t('user.authentication_provider') %>
<div class="form--field-container">
<%= @user.authentication_provider %>
@@ -6,4 +6,14 @@
</div>
<div class="form--field-instructions">
<%= I18n.t('user.authentication_settings_disabled_due_to_external_authentication') %>
-</div>
\ No newline at end of file
+</div>
+
+<div class="form--field -top-margin -reduced-margin">
+ <%= styled_label_tag nil, User.human_attribute_name(:identity_url) %>
+ <div class="form--field-container -empty">
+ <%= @user.identity_url.split(':', 2).last %>
+ </div>
+</div>
+<div class="form--field-instructions">
+ <%= I18n.t('user.identity_url_text') %>
+</div>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index f6ead939747..03390659f47 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -627,6 +627,7 @@ en:
user:
admin: "Administrator"
ldap_auth_source: "LDAP connection"
+ identity_url: "Identity URL"
current_password: "Current password"
force_password_change: "Enforce password change on next login"
language: "Language"
@@ -3158,6 +3159,7 @@ en:
activate: "Activate"
activate_and_reset_failed_logins: "Activate and reset failed logins"
authentication_provider: "Authentication Provider"
+ identity_url_text: "The internal unique identifier provided by the authentication provider."
authentication_settings_disabled_due_to_external_authentication: >
This user authenticates via an external authentication provider, so there is no password
in OpenProject to be changed.
diff --git a/frontend/src/global_styles/content/_forms.sass b/frontend/src/global_styles/content/_forms.sass
index a7a8fc00e36..b255e72f99c 100644
--- a/frontend/src/global_styles/content/_forms.sass
+++ b/frontend/src/global_styles/content/_forms.sass
@@ -324,6 +324,9 @@ fieldset.form--fieldset
&.-align-start
align-items: start
+ &.-top-margin
+ margin-top: 1rem
+
&.-vertical,
.form.-vertical &
@include grid-orient(vertical)
@@ -438,6 +441,9 @@ fieldset.form--fieldset
display: flex
flex-wrap: wrap
+ &.-empty
+ margin-bottom: 1rem
+
&.-with-children-spacing
> *:not(:last-child)
margin-right: 0.5rem