diff options
Diffstat (limited to 'admin/resources/partials/authz/mgmt')
6 files changed, 232 insertions, 0 deletions
diff --git a/admin/resources/partials/authz/mgmt/broker-permissions.html b/admin/resources/partials/authz/mgmt/broker-permissions.html new file mode 100644 index 0000000..2e389ff --- /dev/null +++ b/admin/resources/partials/authz/mgmt/broker-permissions.html @@ -0,0 +1,40 @@ +<div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2"> + <ol class="breadcrumb"> + <li><a href="#/realms/{{realm.realm}}/identity-provider-settings">{{:: 'identity-providers' | translate}}</a></li> + <li data-ng-show="!newIdentityProvider && identityProvider.displayName">{{identityProvider.displayName}}</li> + <li data-ng-show="!newIdentityProvider && !identityProvider.displayName">{{identityProvider.alias}}</li> + </ol> + + <kc-tabs-identity-provider></kc-tabs-identity-provider> + + <form class=form-horizontal" name="enableForm" novalidate kc-read-only="!access.manageIdentityProviders || !access.manageAuthorization"> + <fieldset class="border-top"> + <div class="form-group"> + <label class="col-md-2 control-label" for="permissionsEnabled">{{:: 'permissions-enabled-role' | translate}}</label> + <div class="col-md-6"> + <input ng-model="permissions.enabled" name="permissionsEnabled" id="permissionsEnabled" ng-disabled="!access.manageAuthorization" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}"/> + </div> + <kc-tooltip>{{:: 'permissions-enabled-role.tooltip' | translate}}</kc-tooltip> + </div> + </fieldset> + </form> + <table class="datatable table table-striped table-bordered dataTable no-footer" data-ng-show="permissions.enabled"> + <thead> + <tr> + <th>{{:: 'scope-name' | translate}}</th> + <th>{{:: 'description' | translate}}</th> + <th colspan="2">{{:: 'actions' | translate}}</th> + </tr> + </thead> + <tbody> + <tr ng-repeat="(scopeName, scopeId) in permissions.scopePermissions"> + <td><a href="#/realms/{{realm.realm}}/clients/{{realmManagementClientId}}/authz/resource-server/permission/scope/{{scopeId}}">{{scopeName}}</a></td> + <td translate="{{scopeName}}-authz-idp-scope-description"></td> + <td class="kc-action-cell" kc-open="/realms/{{realm.realm}}/clients/{{realmManagementClientId}}/authz/resource-server/permission/scope/{{scopeId}}">{{:: 'edit' | translate}}</td> + </tr> + </tbody> + </table> + +</div> + +<kc-menu></kc-menu>
\ No newline at end of file diff --git a/admin/resources/partials/authz/mgmt/client-permissions.html b/admin/resources/partials/authz/mgmt/client-permissions.html new file mode 100644 index 0000000..7f29fd7 --- /dev/null +++ b/admin/resources/partials/authz/mgmt/client-permissions.html @@ -0,0 +1,39 @@ +<div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2"> + <ol class="breadcrumb"> + <li><a href="#/realms/{{realm.realm}}/clients">{{:: 'clients' | translate}}</a></li> + <li>{{client.clientId}}</li> + </ol> + + <kc-tabs-client></kc-tabs-client> + + <form class=form-horizontal" name="enableForm" novalidate kc-read-only="!client.access.manage || !access.manageAuthorization"> + <fieldset class="border-top"> + <div class="form-group"> + <label class="col-md-2 control-label" for="permissionsEnabled">{{:: 'permissions-enabled-role' | translate}}</label> + <div class="col-md-6"> + <input ng-model="permissions.enabled" name="permissionsEnabled" id="permissionsEnabled" ng-disabled="!access.manageAuthorization" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}"/> + </div> + <kc-tooltip>{{:: 'permissions-enabled-role.tooltip' | translate}}</kc-tooltip> + </div> + </fieldset> + </form> + <table class="datatable table table-striped table-bordered dataTable no-footer" data-ng-show="permissions.enabled"> + <thead> + <tr> + <th>{{:: 'scope-name' | translate}}</th> + <th>{{:: 'description' | translate}}</th> + <th colspan="2">{{:: 'actions' | translate}}</th> + </tr> + </thead> + <tbody> + <tr ng-repeat="(scopeName, scopeId) in permissions.scopePermissions"> + <td><a href="#/realms/{{realm.realm}}/clients/{{realmManagementClientId}}/authz/resource-server/permission/scope/{{scopeId}}">{{scopeName}}</a></td> + <td translate="{{scopeName}}-authz-client-scope-description"></td> + <td class="kc-action-cell" kc-open="/realms/{{realm.realm}}/clients/{{realmManagementClientId}}/authz/resource-server/permission/scope/{{scopeId}}">{{:: 'edit' | translate}}</td> + </tr> + </tbody> + </table> + +</div> + +<kc-menu></kc-menu>
\ No newline at end of file diff --git a/admin/resources/partials/authz/mgmt/client-role-permissions.html b/admin/resources/partials/authz/mgmt/client-role-permissions.html new file mode 100644 index 0000000..c76ecec --- /dev/null +++ b/admin/resources/partials/authz/mgmt/client-role-permissions.html @@ -0,0 +1,40 @@ +<div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2"> + <ol class="breadcrumb"> + <li><a href="#/realms/{{realm.realm}}/clients">{{:: 'clients' | translate}}</a></li> + <li><a href="#/realms/{{realm.realm}}/clients/{{client.id}}">{{client.clientId}}</a></li> + <li>{{role.name}}</li> + </ol> + + <kc-tabs-client-role></kc-tabs-client-role> + + <form class=form-horizontal" name="enableForm" novalidate kc-read-only="!client.access.manage || !access.manageAuthorization"> + <fieldset class="border-top"> + <div class="form-group"> + <label class="col-md-2 control-label" for="permissionsEnabled">{{:: 'permissions-enabled-role' | translate}}</label> + <div class="col-md-6"> + <input ng-model="permissions.enabled" name="permissionsEnabled" id="permissionsEnabled" ng-disabled="!access.manageAuthorization" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}"/> + </div> + <kc-tooltip>{{:: 'permissions-enabled-role.tooltip' | translate}}</kc-tooltip> + </div> + </fieldset> + </form> + <table class="datatable table table-striped table-bordered dataTable no-footer" data-ng-show="permissions.enabled"> + <thead> + <tr> + <th>{{:: 'scope-name' | translate}}</th> + <th>{{:: 'description' | translate}}</th> + <th colspan="2">{{:: 'actions' | translate}}</th> + </tr> + </thead> + <tbody> + <tr ng-repeat="(scopeName, scopeId) in permissions.scopePermissions"> + <td><a href="#/realms/{{realm.realm}}/clients/{{realmManagementClientId}}/authz/resource-server/permission/scope/{{scopeId}}">{{scopeName}}</a></td> + <td translate="{{scopeName}}-authz-role-scope-description"></td> + <td class="kc-action-cell" kc-open="/realms/{{realm.realm}}/clients/{{realmManagementClientId}}/authz/resource-server/permission/scope/{{scopeId}}">{{:: 'edit' | translate}}</td> + </tr> + </tbody> + </table> + +</div> + +<kc-menu></kc-menu>
\ No newline at end of file diff --git a/admin/resources/partials/authz/mgmt/group-permissions.html b/admin/resources/partials/authz/mgmt/group-permissions.html new file mode 100644 index 0000000..f2be6d9 --- /dev/null +++ b/admin/resources/partials/authz/mgmt/group-permissions.html @@ -0,0 +1,39 @@ +<div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2"> + <ol class="breadcrumb"> + <li><a href="#/realms/{{realm.realm}}/groups">{{:: 'groups' | translate}}</a></li> + <li>{{group.name}}</li> + </ol> + + <kc-tabs-group></kc-tabs-group> + + <form class=form-horizontal" name="enableForm" novalidate kc-read-only="!group.access.manage || !access.manageAuthorization"> + <fieldset class="border-top"> + <div class="form-group"> + <label class="col-md-2 control-label" for="permissionsEnabled">{{:: 'permissions-enabled-role' | translate}}</label> + <div class="col-md-6"> + <input ng-model="permissions.enabled" name="permissionsEnabled" id="permissionsEnabled" ng-disabled="!access.manageAuthorization" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}"/> + </div> + <kc-tooltip>{{:: 'permissions-enabled-role.tooltip' | translate}}</kc-tooltip> + </div> + </fieldset> + </form> + <table class="datatable table table-striped table-bordered dataTable no-footer" data-ng-show="permissions.enabled"> + <thead> + <tr> + <th>{{:: 'scope-name' | translate}}</th> + <th>{{:: 'description' | translate}}</th> + <th colspan="2">{{:: 'actions' | translate}}</th> + </tr> + </thead> + <tbody> + <tr ng-repeat="(scopeName, scopeId) in permissions.scopePermissions"> + <td><a href="#/realms/{{realm.realm}}/clients/{{realmManagementClientId}}/authz/resource-server/permission/scope/{{scopeId}}">{{scopeName}}</a></td> + <td translate="{{scopeName}}-authz-group-scope-description"></td> + <td class="kc-action-cell" kc-open="/realms/{{realm.realm}}/clients/{{realmManagementClientId}}/authz/resource-server/permission/scope/{{scopeId}}">{{:: 'edit' | translate}}</td> + </tr> + </tbody> + </table> + +</div> + +<kc-menu></kc-menu>
\ No newline at end of file diff --git a/admin/resources/partials/authz/mgmt/realm-role-permissions.html b/admin/resources/partials/authz/mgmt/realm-role-permissions.html new file mode 100644 index 0000000..e21ee63 --- /dev/null +++ b/admin/resources/partials/authz/mgmt/realm-role-permissions.html @@ -0,0 +1,39 @@ +<div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2"> + <ol class="breadcrumb"> + <li><a href="#/realms/{{realm.realm}}/roles">{{:: 'roles' | translate}}</a></li> + <li>{{role.name}}</li> + </ol> + + <kc-tabs-role></kc-tabs-role> + + <form class=form-horizontal" name="enableForm" novalidate kc-read-only="!access.manageAuthorization"> + <fieldset class="border-top"> + <div class="form-group"> + <label class="col-md-2 control-label" for="permissionsEnabled">{{:: 'permissions-enabled-role' | translate}}</label> + <div class="col-md-6"> + <input ng-model="permissions.enabled" name="permissionsEnabled" id="permissionsEnabled" ng-disabled="!access.manageAuthorization" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}"/> + </div> + <kc-tooltip>{{:: 'permissions-enabled-role.tooltip' | translate}}</kc-tooltip> + </div> + </fieldset> + </form> + <table class="datatable table table-striped table-bordered dataTable no-footer" data-ng-show="permissions.enabled"> + <thead> + <tr> + <th>{{:: 'scope-name' | translate}}</th> + <th>{{:: 'description' | translate}}</th> + <th colspan="2">{{:: 'actions' | translate}}</th> + </tr> + </thead> + <tbody> + <tr ng-repeat="(scopeName, scopeId) in permissions.scopePermissions"> + <td><a href="#/realms/{{realm.realm}}/clients/{{realmManagementClientId}}/authz/resource-server/permission/scope/{{scopeId}}">{{scopeName}}</a></td> + <td translate="{{scopeName}}-authz-role-scope-description"></td> + <td class="kc-action-cell" kc-open="/realms/{{realm.realm}}/clients/{{realmManagementClientId}}/authz/resource-server/permission/scope/{{scopeId}}">{{:: 'edit' | translate}}</td> + </tr> + </tbody> + </table> + +</div> + +<kc-menu></kc-menu>
\ No newline at end of file diff --git a/admin/resources/partials/authz/mgmt/users-permissions.html b/admin/resources/partials/authz/mgmt/users-permissions.html new file mode 100644 index 0000000..2665bba --- /dev/null +++ b/admin/resources/partials/authz/mgmt/users-permissions.html @@ -0,0 +1,35 @@ +<div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2"> + + <kc-tabs-users></kc-tabs-users> + + <form class=form-horizontal" name="enableForm" novalidate kc-read-only="!access.manageAuthorization"> + <fieldset class="border-top"> + <div class="form-group"> + <label class="col-md-2 control-label" for="permissionsEnabled">{{:: 'permissions-enabled-users' | translate}}</label> + <div class="col-md-6"> + <input ng-model="permissions.enabled" name="permissionsEnabled" id="permissionsEnabled" ng-disabled="!access.manageAuthorization" onoffswitch on-text="{{:: 'onText' | translate}}" off-text="{{:: 'offText' | translate}}"/> + </div> + <kc-tooltip>{{:: 'permissions-enabled-users.tooltip' | translate}}</kc-tooltip> + </div> + </fieldset> + </form> + <table class="datatable table table-striped table-bordered dataTable no-footer" data-ng-show="permissions.enabled"> + <thead> + <tr> + <th>{{:: 'scope-name' | translate}}</th> + <th>{{:: 'description' | translate}}</th> + <th colspan="2">{{:: 'actions' | translate}}</th> + </tr> + </thead> + <tbody> + <tr ng-repeat="(scopeName, scopeId) in permissions.scopePermissions"> + <td><a href="#/realms/{{realm.realm}}/clients/{{realmManagementClientId}}/authz/resource-server/permission/scope/{{scopeId}}">{{scopeName}}</a></td> + <td translate="{{scopeName}}-authz-users-scope-description"></td> + <td class="kc-action-cell" kc-open="/realms/{{realm.realm}}/clients/{{realmManagementClientId}}/authz/resource-server/permission/scope/{{scopeId}}">{{:: 'edit' | translate}}</td> + </tr> + </tbody> + </table> + +</div> + +<kc-menu></kc-menu>
\ No newline at end of file |