forked from keycloak/keycloak
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request keycloak#1441 from mposolda/master
KEYCLOAK-1233 Admin console support for add/remove federated identity
- Loading branch information
Showing
12 changed files
with
194 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
...rc/main/resources/theme/base/admin/resources/partials/user-federated-identity-detail.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<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}}/users">Users</a></li> | ||
<li>{{user.username}}</li> | ||
</ol> | ||
|
||
<h1 data-ng-show="create">Add Identity Provider Link</h1> | ||
|
||
<kc-tabs-user></kc-tabs-user> | ||
|
||
<form class="form-horizontal" name="realmForm" novalidate kc-read-only="!access.manageRealm"> | ||
<fieldset> | ||
<div class="form-group"> | ||
<label class="col-md-2 control-label" for="identityProvider">Identity Provier <span class="required">*</span></label> | ||
<div class="col-sm-6"> | ||
<div> | ||
<select class="form-control" id="identityProvider" | ||
ng-model="federatedIdentity.identityProvider" | ||
ng-options="providerAlias for providerAlias in availableProvidersToCreate" | ||
required> | ||
</select> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="form-group clearfix"> | ||
<label class="col-md-2 control-label" for="userId">Identity Provider User ID <span class="required">*</span></label> | ||
<div class="col-md-6"> | ||
<input class="form-control" id="userId" type="text" ng-model="federatedIdentity.userId" required> | ||
</div> | ||
<kc-tooltip>Unique ID of the user on the Identity Provider side</kc-tooltip> | ||
</div> | ||
<div class="form-group clearfix"> | ||
<label class="col-md-2 control-label" for="userName">Identity Provider Username <span class="required">*</span></label> | ||
<div class="col-md-6"> | ||
<input class="form-control" id="userName" type="text" ng-model="federatedIdentity.userName" required> | ||
</div> | ||
<kc-tooltip>Username on the Identity Provider side</kc-tooltip> | ||
</div> | ||
|
||
</fieldset> | ||
|
||
<div class="pull-right form-actions" data-ng-show="access.manageRealm"> | ||
<button kc-cancel data-ng-click="cancel()">Cancel</button> | ||
<button kc-save>Save</button> | ||
</div> | ||
|
||
</form> | ||
</div> | ||
|
||
<kc-menu></kc-menu> |
45 changes: 45 additions & 0 deletions
45
.../src/main/resources/theme/base/admin/resources/partials/user-federated-identity-list.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<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}}/users">Users</a></li> | ||
<li>{{user.username}}</li> | ||
</ol> | ||
|
||
<h1>{{user.username|capitalize}}</h1> | ||
|
||
<kc-tabs-user></kc-tabs-user> | ||
|
||
<table class="table table-striped table-bordered"> | ||
<thead> | ||
<tr> | ||
<th class="kc-table-actions" colspan="4"> | ||
<div class="form-inline"> | ||
<div class="pull-right" data-ng-show="hasAnyProvidersToCreate()"> | ||
<a class="btn btn-primary" href="#/create/federated-identity/{{realm.realm}}/{{user.id}}">Create</a> | ||
</div> | ||
</div> | ||
</th> | ||
</tr> | ||
<tr data-ng-hide="federatedIdentities.length == 0"> | ||
<th>Identity Provider Alias</th> | ||
<th>Provider user ID</th> | ||
<th>Provider username</th> | ||
<th>Action</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr data-ng-repeat="identity in federatedIdentities"> | ||
<td>{{identity.identityProvider}}</td> | ||
<td>{{identity.userId}}</td> | ||
<td>{{identity.userName}}</td> | ||
<td class="actions"> | ||
<div class="action-div"><i class="pficon pficon-delete" ng-click="removeProviderLink(identity)" tooltip-placement="right" tooltip="Remove Provider Link"></i></div> | ||
</td> | ||
</tr> | ||
<tr data-ng-show="federatedIdentities.length == 0"> | ||
<td>No identity provider links available</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
|
||
<kc-menu></kc-menu> |
27 changes: 0 additions & 27 deletions
27
...hemes/src/main/resources/theme/base/admin/resources/partials/user-federated-identity.html
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
...s/common-themes/src/main/resources/theme/base/admin/resources/templates/kc-tabs-user.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<ul class="nav nav-tabs" data-ng-show="!create"> | ||
<li ng-class="{active: !path[4]}"><a href="#/realms/{{realm.realm}}/users/{{user.id}}">Attributes</a></li> | ||
<li ng-class="{active: !path[4] && path[0] != 'create'}"><a href="#/realms/{{realm.realm}}/users/{{user.id}}">Attributes</a></li> | ||
<li ng-class="{active: path[4] == 'user-credentials'}" data-ng-show="access.manageUsers"><a href="#/realms/{{realm.realm}}/users/{{user.id}}/user-credentials">Credentials</a></li> | ||
<li ng-class="{active: path[4] == 'role-mappings'}" ><a href="#/realms/{{realm.realm}}/users/{{user.id}}/role-mappings">Role Mappings</a></li> | ||
<li ng-class="{active: path[4] == 'consents'}"><a href="#/realms/{{realm.realm}}/users/{{user.id}}/consents">Consents</a></li> | ||
<li ng-class="{active: path[4] == 'sessions'}" ><a href="#/realms/{{realm.realm}}/users/{{user.id}}/sessions">Sessions</a></li> | ||
<li ng-class="{active: path[4] == 'federated-identity'}" data-ng-show="user.federatedIdentities && user.federatedIdentities.length > 0"><a href="#/realms/{{realm.realm}}/users/{{user.id}}/federated-identity">Identity Provider Links</a></li> | ||
<li ng-class="{active: path[4] == 'federated-identity' || path[1] == 'federated-identity'}" data-ng-show="user.federatedIdentities != null"><a href="#/realms/{{realm.realm}}/users/{{user.id}}/federated-identity">Identity Provider Links</a></li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters