Michael Krotscheck 4b02ea285f Users may now issue their own access tokens.
A user may now issue their own access tokens, as well as deactivate
existing access tokens, using the web UI. It may be used for direct API
access using the python SDK.

Change-Id: I01a59c4fad6459299ee846879065b256326efedb
2014-12-08 14:55:41 -08:00

79 lines
2.9 KiB
HTML

<!--
~ Copyright (c) 2014 Hewlett-Packard Development Company, L.P.
~
~ Licensed under the Apache License, Version 2.0 (the "License"); you may
~ not use this file except in compliance with the License. You may obtain
~ a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
~ License for the specific language governing permissions and limitations
~ under the License.
-->
<div class="container" ng-hide="isLoading">
<div class="row">
<div class="col-xs-12">
<h1><i class="fa fa-sb-profile-tokens"></i> Authentication
Tokens</h1>
</div>
<div class="col-xs-9 col-sm-10">
<p class="lead">Authorize and deauthorize authentication tokens
for StoryBoard.</p>
</div>
<div class="col-xs-3 col-sm-2">
<button type="button"
class="btn btn-primary btn-sm pull-right"
ng-click="issueToken()">
<i class="fa fa-plus"></i>
<span class="hidden-sm hidden-xs">Issue Token</span>
</button>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<table class="table table-condensed">
<thead>
<tr>
<th>Token</th>
<th>Issued</th>
<th>Expires</th>
<th>&nbsp;</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="token in tokens"
ng-controller="ProfileTokenItemController">
<td>
<span class="label label-success"
ng-if="current">
Current
</span>
<span class="label label-danger"
ng-if="expired && !current">
Expired
</span>
<span class="label label-info"
ng-if="!expired && !current">
Active
</span>
&nbsp;{{token.access_token}}
</td>
<td><span time-moment eventdate="created"></span></td>
<td><span time-moment eventdate="expires"></span></td>
<td>
<button type="button"
class="close"
ng-click="deleteToken(token)"
ng-if="!current">&times;</button>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>