KEYCLOAK-11364 Revise Service Account roles page (#7098)

* KEYCLOAK-11364 Add link to service-account user in Service Account roles page

* KEYCLOAK-11364 Revise service-account page
This commit is contained in:
Thomas Darimont 2021-09-30 20:55:44 +02:00 committed by GitHub
parent 9838a47662
commit 9e6d6398b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 3 deletions

View file

@ -600,6 +600,10 @@ encryption-key=Encryption Key
saml-encryption-key.tooltip=SAML Encryption Key.
service-accounts=Service Accounts
service-account.available-roles.tooltip=Realm level roles that can be assigned to service account. Contains effectively assigned roles which are not directly assigned.
service-account=Service Account
service-account.roles=Service Account Roles
service-account.user=Service Account User
service-account.user.tooltip=Username the Service Account. To manage details and group mappings click on the username.
service-account.assigned-roles.tooltip=Realm level roles assigned to service account.
service-account-is-not-enabled-for=Service account is not enabled for {{client}}
create-protocol-mappers=Create Protocol Mappers

View file

@ -7,10 +7,23 @@
<kc-tabs-client></kc-tabs-client>
<h2><span>{{client.clientId}}</span> {{:: 'service-accounts' | translate}} </h2>
<form class="form-horizontal" name="realmForm" novalidate kc-read-only="!client.access.configure" data-ng-show="client.serviceAccountsEnabled">
<h2>{{:: 'service-account' | translate}}</h2>
<div class="form-group">
<label class="col-md-2 control-label">{{:: 'service-account.user' | translate}}</label>
<div class="col-md-6">
<a class="form-control" ng-href="#/realms/{{realm.realm}}/users/{{user.id}}">{{user.username}}</a>
</div>
<kc-tooltip>{{:: 'service-account.user.tooltip' | translate}}</kc-tooltip>
</div>
<p class="subtitle"></p>
<h2>{{:: 'service-account.roles' | translate}}</h2>
<p class="subtitle"></p>
<form class="form-horizontal" name="realmForm" novalidate kc-read-only="!client.access.configure" data-ng-show="client.serviceAccountsEnabled">
<div class="form-group">
<label class="col-md-2 control-label" class="control-label">{{:: 'realm-roles' | translate}}</label>
<div class="col-md-10">