232 lines
8.9 KiB
HTML
232 lines
8.9 KiB
HTML
<script type="text/html" id="tmpl-client">
|
|
<td>
|
|
<%=clientId%>
|
|
<blockquote><small><%=clientDescription%></small></blockquote>
|
|
</td>
|
|
|
|
<td>
|
|
<%=applicationName%>
|
|
<!--expandable future information-->
|
|
</td>
|
|
|
|
<td>
|
|
<button class="btn btn-edit">edit</button> <button class="btn btn-danger btn-delete">delete</button>
|
|
</td>
|
|
|
|
</script>
|
|
|
|
<script type="text/html" id="tmpl-client-table">
|
|
<div class="well">
|
|
<button class="btn btn-small btn-primary">New Client</button>
|
|
</div>
|
|
|
|
<table id="client-table" class="table">
|
|
<thead>
|
|
<tr>
|
|
<th>Client ID</th>
|
|
<th>Application Name</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="well">
|
|
<button class="btn btn-small btn-primary">New Client</button>
|
|
</div>
|
|
</script>
|
|
|
|
|
|
<script type="text/html" id="tmpl-client-form">
|
|
|
|
<h1><%=(id == null ? 'New' : 'Edit')%> Client</h1>
|
|
|
|
|
|
<form class="form-horizontal">
|
|
<fieldset>
|
|
<legend>Details</legend>
|
|
|
|
<div class="well">
|
|
<button class="btn btn-small btn-primary">Submit</button> <button class="btn btn-small btn-cancel">Cancel</button>
|
|
</div>
|
|
|
|
<div class="control-group" id="applicationName">
|
|
<label class="control-label">Application name</label>
|
|
<div class="controls">
|
|
<input value="<%=applicationName%>" maxlength="100" type="text" class="" placeholder="Type something">
|
|
<p class="help-block">Human-readable application name</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group" id="clientId">
|
|
<label class="control-label">Client ID</label>
|
|
<div class="controls">
|
|
<input value="<%=clientId%>" maxlength="100" type="text" class="" placeholder="Type something">
|
|
<p class="help-block">Unique identifier. If you leave this blank it will be automatically generated.</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group" id="registeredRedirectUri">
|
|
<label class="control-label">Redirect URI(s)</label>
|
|
<div class="controls">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group" id="clientDescription">
|
|
<label class="control-label">Description</label>
|
|
<div class="controls">
|
|
<textarea class="input-xlarge" placeholder="Type a description" maxlength="200"
|
|
rows="3"><%=clientDescription%></textarea>
|
|
<p class="help-block">Human-readable text description</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
<label class="control-label">Refresh Tokens</label>
|
|
<div class="controls">
|
|
<label class="checkbox">
|
|
<input type="checkbox" id="allowRefresh" <%=(allowRefresh == true ? 'checked' : '')%>> Allow refresh tokens?
|
|
</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group" id="scope">
|
|
<label class="control-label">Scope</label>
|
|
<div class="controls">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group" id="requireClientSecret">
|
|
<label class="control-label">Require Client Secret</label>
|
|
<div class="controls">
|
|
<label class="checkbox">
|
|
<input type="checkbox" <%=(requireClientSecret == true ? 'checked' : '')%>> Require client secret?
|
|
</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div id="clientSecretPanel">
|
|
|
|
<div class="control-group" id="generateClientSecret">
|
|
<label class="control-label">Generate Client Secret</label>
|
|
<div class="controls">
|
|
<label class="checkbox">
|
|
<input type="checkbox" <%=(generateClientSecret == true ? 'checked' : '')%>> Generate a new client secret?
|
|
</label>
|
|
<p class="help-block">New secret will be generated when you click 'Save'</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group" id="displayClientSecret">
|
|
<label class="control-label">Show Client Secret</label>
|
|
<div class="controls">
|
|
<label class="checkbox">
|
|
<input type="checkbox" <%=(displayClientSecret == true ? 'checked' : '')%>> Display client secret here:
|
|
</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group">
|
|
<label class="control-label">Client Secret</label>
|
|
<div class="controls">
|
|
<input id="clientSecret" value="<%=clientSecret%>" maxlength="100" type="text" placeholder="Type a secret">
|
|
<input id="clientSecretGenerated" value="Generate on Save" type="text" disabled>
|
|
<input id="clientSecretHidden" value="************" type="password" disabled>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="control-group" id="authorizedGrantTypes">
|
|
<label class="control-label">Authorized Grant Types</label>
|
|
|
|
<div class="controls">
|
|
|
|
<label class="checkbox">
|
|
<input id="authorizedGrantTypes-authorization_code" type="checkbox"
|
|
<%=($.inArray("authorization_code", authorizedGrantTypes) > -1 ? 'checked' : '')%>>
|
|
authorization code
|
|
</label>
|
|
<label class="checkbox">
|
|
<input id="authorizedGrantTypes-client_credentials" type="checkbox"
|
|
<%=($.inArray("client_credentials", authorizedGrantTypes) > -1 ? 'checked' : '')%>> client
|
|
credentials
|
|
</label>
|
|
<label class="checkbox">
|
|
<input id="authorizedGrantTypes-password" type="checkbox" <%=($.inArray("password",
|
|
authorizedGrantTypes) > -1 ? 'checked' : '')%>> password
|
|
</label>
|
|
<label class="checkbox">
|
|
<input id="authorizedGrantTypes-implicit" type="checkbox" <%=($.inArray("implicit",
|
|
authorizedGrantTypes) > -1 ? 'checked' : '')%>> implicit
|
|
</label>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group" id="accessTokenValiditySeconds">
|
|
<label class="control-label">Access Token
|
|
Timeout</label>
|
|
<div class="controls">
|
|
<div class="input-append">
|
|
<input type="text" class="" value="<%=accessTokenValiditySeconds%>" id="access-token-timeout-seconds" size="16"><span
|
|
class="add-on">seconds</span>
|
|
</div>
|
|
<p class="help-block">Enter this time in seconds</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group" id="refreshTokenValiditySeconds">
|
|
<label class="control-label">Refresh Token
|
|
Timeout</label>
|
|
<div class="controls">
|
|
<div class="input-append">
|
|
<input type="text" class="" value="<%=refreshTokenValiditySeconds%>" id="refresh-token-timeout-seconds" size="16"><span
|
|
class="add-on">seconds</span>
|
|
</div>
|
|
<p class="help-block">Enter this time in seconds</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="control-group" id="idTokenValiditySeconds">
|
|
<label class="control-label">ID Token
|
|
Timeout</label>
|
|
<div class="controls">
|
|
<div class="input-append">
|
|
<input type="text" class="" value="<%=idTokenValiditySeconds%>" id="id-token-timeout-seconds" size="16"><span
|
|
class="add-on">seconds</span>
|
|
</div>
|
|
<p class="help-block">Enter this time in seconds</p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="well">
|
|
<button class="btn btn-small btn-primary">Submit</button> <button class="btn btn-small btn-cancel">Cancel</button>
|
|
</div>
|
|
|
|
</fieldset>
|
|
</form>
|
|
|
|
</script>
|
|
|
|
<script type="text/html" id="tmpl-breadcrumbs">
|
|
<% if (active == false) { %>
|
|
<li><a href="<%=href%>"><%=text%></a> <span class="divider">/</span></li>
|
|
<% } else { %>
|
|
<li class="active"><%=text%></li>
|
|
<% } %>
|
|
</script>
|
|
|
|
<script type="text/html" id="tmpl-list-widget-child">
|
|
<td><%=(item.length > 27) ? item.substr(0,27) + '...' : item %></td>
|
|
<td><i class="icon-minus-sign icon-gray"></i></td>
|
|
</script>
|
|
|
|
<script type="text/html" id="tmpl-list-widget">
|
|
<tbody>
|
|
<tr>
|
|
<td><input type="text" value="" placeholder="http://"></td>
|
|
<td><button class="btn btn-small" type="button">Add</button></td>
|
|
</tr>
|
|
</tbody>
|
|
</script> |