user-federated-identity-list.html

43 lines | 1.612 kB Blame History Raw Download
<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>

    <kc-tabs-user></kc-tabs-user>

    <table class="table table-striped table-bordered">
        <thead>
            <tr data-ng-show="hasAnyProvidersToCreate()">
                <th class="kc-table-actions" colspan="4">
                    <div class="form-inline">
                        <div class="pull-right">
                            <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="kc-action-cell">
                    <button class="btn btn-default btn-block btn-sm" ng-click="removeProviderLink(identity)">Remove</button>
                </td>
            </tr>
            <tr data-ng-show="federatedIdentities.length == 0">
                <td>No identity provider links available</td>
            </tr>
        </tbody>
    </table>
</div>

<kc-menu></kc-menu>