This repository was archived by the owner on Jul 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 301
/
Copy pathtplEditClient.html
176 lines (161 loc) · 8.42 KB
/
tplEditClient.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<div id="editClient">
<div class="page-header">
<h1>{{formTitle}}</h1>
</div>
<form class="form-horizontal" id="editClientForm">
<input type="hidden" name="id" value="{{id}}" />
<fieldset>
<div class="control-group">
<label class="control-label">Client name</label>
<div class="controls">
<input type="text" required="required" name="name" value="{{name}}" placeholder="client name">
<i class="icon-question-sign icon-blue" rel="popover" name="client-name"></i>
</div>
</div>
<div class="control-group">
<label class="control-label">Resource Server</label>
<div class="controls">
{{#if availableResourceServers}}
<select required="required" name="resourceServerId" id="clientResourceServer">
{{#each availableResourceServers}}
<option value="{{id}}">{{name}}</option>
{{/each}}
</select>
<i class="icon-question-sign icon-blue" rel="popover" name="client-resource-server"></i>
{{else}}
<input type="hidden" name="resourceServerId" value="{{resourceServer.id}}">
<label class="control-label">{{resourceServer.name}}</label>
<i class="icon-question-sign icon-blue" rel="popover" name="client-resource-server"></i>
{{/if}}
</div>
</div>
<div class="control-group">
<label for="clientDescription" class="control-label">Description</label>
<div class="controls">
<textarea rows="3" id="clientDescription" name="description" class="input">{{description}}</textarea>
<i class="icon-question-sign icon-blue" rel="popover" name="client-description"></i>
</div>
</div>
<div class="control-group">
<label class="control-label">Scopes</label>
<i class="icon-question-sign icon-blue" rel="popover" name="client-scope"></i>
<div class="controls" id="clientScopesHolder">
{{#each availableScopes}}
<label class="checkbox">
<input type="checkbox" value="{{scopeName}}" name="scopes"
{{#if currentlySelected}}checked="checked"{{/if}}>
{{scopeName}}
</label>
{{/each}}
</div>
</div>
<div class="control-group">
<label class="control-label">Thumbnail URL</label>
<div class="controls">
<input type="url" name="thumbNailUrl" value="{{thumbNailUrl}}" placeholder="http://your-thumbnail-url">
<i class="icon-question-sign icon-blue" rel="popover" name="client-thumbNailUrl"></i>
</div>
</div>
<div class="control-group">
<label class="control-label">Contact name</label>
<div class="controls">
<input type="text" name="contactName" required="required" value="{{contactName}}" placeholder="your name">
<i class="icon-question-sign icon-blue" rel="popover" name="client-contactName"></i>
</div>
</div>
<div class="control-group">
<label class="control-label">Contact email address</label>
<div class="controls">
<input type="email" name="contactEmail" required="required" value="{{contactEmail}}" placeholder="[email protected]">
<i class="icon-question-sign icon-blue" rel="popover" name="client-contactEmail"></i>
</div>
</div>
<div class="control-group">
<label class="control-label">Redirect URIs</label>
<div class="controls" id="redirectUrisHolder">
{{#each redirectUris}}
<div class="input multiple-fields">
<input type="url" name="redirectUris" size="16" class="input-append" value="{{this}}">
<button type="button" class="btn removeRedirectUri"><i class="icon-trash"></i></button>
</div>
{{/each}}
<div class="input multiple-fields" id="newRedirectUri">
<input type="url" id="newRedirectUriField" name="redirectUris"
placeholder="http://your-apps-uri/" size="16" class="input-append">
<button type="button" class="btn btn-success addRedirectUri"><i class="icon-plus icon-white"></i></button>
<i class="icon-question-sign icon-blue" rel="popover" name="client-redirectUri"></i>
</div>
</div>
</div>
<div class="alert hide" id="implicit_grant_warning">
<button class="close" data-dismiss="alert">×</button>
<span>An implicit grant client is not issued a secret. Therefore this client can not use the authorization code flow.</span>
</div>
<div class="control-group">
<label class="control-label">Allow implicit grant</label>
<div class="controls">
<input type="checkbox" name="allowedImplicitGrant" value="true" {{#if allowedImplicitGrant}}checked="checked"{{/if}}>
<i class="icon-question-sign icon-blue" rel="popover" name="client-allowedImplicitGrant"></i>
</div>
</div>
<div class="alert hide" id="client_credentials_warning">
<button class="close" data-dismiss="alert">×</button>
<span>A client credentials grant is usually for resource servers that acts as clients to other resource servers. It MUST only be used by very confidential clients.</span>
</div>
<div class="control-group">
<label class="control-label">Allow client credentials grant</label>
<div class="controls">
<input type="checkbox" name="allowedClientCredentials" value="true" {{#if allowedClientCredentials}}checked="checked"{{/if}}>
<i class="icon-question-sign icon-blue" rel="popover" name="client-allowedClientCredentials"></i>
</div>
</div>
<div class="alert hide" id="password_grant_warning">
<button class="close" data-dismiss="alert">×</button>
<span>A password grant is usually for highly trusted mobile or desktop apps. These clients should should not have a secret, since it can't be protected.</span>
</div>
<div class="control-group">
<label class="control-label">Allow password grant</label>
<div class="controls">
<input type="checkbox" name="allowedPasswordGrant" value="true" {{#if allowedPasswordGrant}}checked="checked"{{/if}}>
<i class="icon-question-sign icon-blue" rel="popover" name="client-allowedPasswordGrant"></i>
</div>
</div>
<div class="control-group">
<label class="control-label">Use refresh tokens</label>
<div class="controls">
<input type="checkbox" name="useRefreshTokens" value="true" {{#if useRefreshTokens}}checked="checked"{{/if}}>
<i class="icon-question-sign icon-blue" rel="popover" name="client-useRefreshTokens"></i>
</div>
</div>
<div class="control-group">
<label class="control-label">Token expiration time</label>
<div class="controls">
<input type="number" name="expireDuration" value="{{expireDuration}}" placeholder="0">
<i class="icon-question-sign icon-blue" rel="popover" name="client-expireDuration"></i>
</div>
</div>
<div class="control-group">
<label class="control-label">Additional attributes</label>
<div class="controls" id="attributesHolder">
{{#each attributes}}
<div class="input multiple-fields">
<input class="span2" type="text" name="attributeName" value="{{attributeName}}">
<input class="span2" type="text" name="attributeValue" value="{{attributeValue}}">
<button class="btn removeAttribute" type="button"><i class="icon-trash"></i></button>
</div>
{{/each}}
<div id="newAttribute" class="input multiple-fields">
<input class="span2" type="text" name="attributeName" id="newAttributeName" placeholder="key">
<input class="span2" type="text" name="attributeValue" id="newAttributeValue" placeholder="value">
<button type="button" class="btn btn-success addAttribute"><i class="icon-plus icon-white"></i></button>
<i class="icon-question-sign icon-blue" rel="popover" name="client-attributes"></i>
</div>
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary">Save changes</button>
<button type="button" class="cancel btn">Cancel</button>
</div>
</fieldset>
</form>
</div>