kc-tabs-client.html 5.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <div data-ng-controller="ClientTabCtrl">
  2. <h1 data-ng-show="create">{{:: 'add-client' | translate}}</h1>
  3. <h1 data-ng-hide="create">
  4. {{client.clientId|capitalize}}
  5. <i id="removeClient" class="pficon pficon-delete clickable" data-ng-show="client.access.manage" data-ng-click="removeClient()"></i>
  6. </h1>
  7. <ul class="nav nav-tabs" data-ng-hide="create && !path[4]">
  8. <li ng-class="{active: !path[4]}"><a href="#/realms/{{realm.realm}}/clients/{{client.id}}">{{:: 'settings' | translate}}</a></li>
  9. <li ng-class="{active: path[4] == 'credentials'}"
  10. data-ng-show="!client.publicClient && client.protocol == 'openid-connect' && !client.origin">
  11. <a href="#/realms/{{realm.realm}}/clients/{{client.id}}/credentials">{{:: 'credentials' | translate}}</a>
  12. </li>
  13. <li ng-class="{active: path[4] == 'saml'}" data-ng-show="client.protocol == 'saml' && (client.attributes['saml.client.signature'] == 'true' || client.attributes['saml.encrypt'] == 'true')"><a href="#/realms/{{realm.realm}}/clients/{{client.id}}/saml/keys">{{:: 'keys' | translate}}</a></li>
  14. <li ng-class="{active: path[4] == 'oidc'}" data-ng-show="client.protocol == 'openid-connect'"><a
  15. href="#/realms/{{realm.realm}}/clients/{{client.id}}/oidc/keys">{{:: 'keys' | translate}}</a></li>
  16. <li ng-class="{active: path[4] == 'roles'}" data-ng-show="!client.origin"><a href="#/realms/{{realm.realm}}/clients/{{client.id}}/roles">{{:: 'roles' | translate}}</a></li>
  17. <li ng-class="{active: path[4] == 'client-scopes'}" data-ng-show="!client.bearerOnly">
  18. <a href="#/realms/{{realm.realm}}/clients/{{client.id}}/client-scopes/setup-scopes">{{:: 'client-scopes' | translate}}</a>
  19. <kc-tooltip>{{:: 'client-scopes.tooltip' | translate}}</kc-tooltip>
  20. </li>
  21. <li ng-class="{active: path[4] == 'mappers'}" data-ng-show="!client.bearerOnly">
  22. <a href="#/realms/{{realm.realm}}/clients/{{client.id}}/mappers">{{:: 'mappers' | translate}}</a>
  23. <kc-tooltip>{{:: 'mappers.tooltip' | translate}}</kc-tooltip>
  24. </li>
  25. <li ng-class="{active: path[4] == 'scope-mappings'}" data-ng-show="!client.bearerOnly">
  26. <a href="#/realms/{{realm.realm}}/clients/{{client.id}}/scope-mappings">{{:: 'scope' | translate}}</a>
  27. <kc-tooltip>{{:: 'scope.tooltip' | translate}}</kc-tooltip>
  28. </li>
  29. <li ng-class="{active: path[4] == 'authz'}"
  30. data-ng-show="!disableAuthorizationTab && client.authorizationServicesEnabled && !client.origin">
  31. <a href="#/realms/{{realm.realm}}/clients/{{client.id}}/authz/resource-server">{{:: 'authz-authorization' |
  32. translate}}</a></li>
  33. <li ng-class="{active: path[4] == 'revocation'}" data-ng-show="client.protocol != 'docker-v2' && client.protocol != 'saml' && !client.origin"><a
  34. href="#/realms/{{realm.realm}}/clients/{{client.id}}/revocation">{{:: 'revocation' | translate}}</a>
  35. </li>
  36. <!-- <li ng-class="{active: path[4] == 'identity-provider'}" data-ng-show="realm.identityFederationEnabled"><a href="#/realms/{{realm.realm}}/clients/{{client.id}}/identity-provider">Identity Provider</a></li> -->
  37. <li ng-class="{active: path[4] == 'sessions'}" data-ng-show="!client.bearerOnly">
  38. <a href="#/realms/{{realm.realm}}/clients/{{client.id}}/sessions">{{:: 'sessions' | translate}}</a>
  39. <kc-tooltip>{{:: 'sessions.tooltip' | translate}}</kc-tooltip>
  40. </li>
  41. <li ng-class="{active: path[4] == 'offline-access'}" data-ng-show="!client.bearerOnly">
  42. <a href="#/realms/{{realm.realm}}/clients/{{client.id}}/offline-access">{{:: 'offline-access' | translate}}</a>
  43. <kc-tooltip>{{:: 'offline-access.tooltip' | translate}}</kc-tooltip>
  44. </li>
  45. <li ng-class="{active: path[4] == 'clustering'}" data-ng-show="!client.publicClient && !client.origin"><a href="#/realms/{{realm.realm}}/clients/{{client.id}}/clustering">{{:: 'clustering' | translate}}</a></li>
  46. <li ng-class="{active: path[4] == 'installation'}" data-ng-show="!client.origin">
  47. <a href="#/realms/{{realm.realm}}/clients/{{client.id}}/installation">{{:: 'installation' | translate}}</a>
  48. <kc-tooltip>{{:: 'installation.tooltip' | translate}}</kc-tooltip>
  49. </li>
  50. <li ng-class="{active: path[4] == 'service-account-roles'}" data-ng-show="client.serviceAccountsEnabled && !(client.bearerOnly || client.publicClient)">
  51. <a href="#/realms/{{realm.realm}}/clients/{{client.id}}/service-account-roles">{{:: 'service-account-roles' | translate}}</a>
  52. <kc-tooltip>{{:: 'service-account-roles.tooltip' | translate}}</kc-tooltip>
  53. </li>
  54. <li ng-class="{active: path[4] == 'permissions'}" data-ng-show="serverInfo.featureEnabled('ADMIN_FINE_GRAINED_AUTHZ') && client.access.manage && access.manageAuthorization">
  55. <a href="#/realms/{{realm.realm}}/clients/{{client.id}}/permissions">{{:: 'authz-permissions' | translate}}</a>
  56. <kc-tooltip>{{:: 'manage-permissions-client.tooltip' | translate}}</kc-tooltip>
  57. </li>
  58. </ul>
  59. </div>