38
38
39
39
< script type ="text/html " id ="tmpl-rsreg-resource-form ">
40
40
41
- < h1 > < %= ( client . client_id == null ? 'New' : 'Edit' ) % > Protected Resource < / h 1 >
41
+ < h1 > < % - ( client . client_id == null ? 'New' : 'Edit' ) % > Protected Resource < / h 1 >
42
42
43
43
44
44
< form class = "form-horizontal tabbable" >
@@ -76,7 +76,7 @@ <h1><%=(client.client_id == null ? 'New' : 'Edit')%> Protected Resource</h1>
76
76
< div class = "control-group" id = "clientId" >
77
77
< label class = "control-label" > Client ID</ label >
78
78
< div class = "controls" >
79
- < pre > < %= client . client_id ? client . client_id : '< code > Will be generated</ code > '%> </ pre >
79
+ < pre > < % - client . client_id ? client . client_id : '< code > Will be generated</ code > '%> </ pre >
80
80
</ div >
81
81
</ div >
82
82
@@ -87,7 +87,7 @@ <h1><%=(client.client_id == null ? 'New' : 'Edit')%> Protected Resource</h1>
87
87
< div class = "controls" >
88
88
< % if ( client . client_id ) { % >
89
89
< % if ( client . client_secret ) { % >
90
- < pre > < %= client . client_secret % > </ pre >
90
+ < pre > < % - client . client_secret % > </ pre >
91
91
< % } else { % >
92
92
< % if ( client . token_endpoint_auth_method == 'none' ) { % >
93
93
< pre > None (public client)</ pre >
@@ -108,14 +108,14 @@ <h1><%=(client.client_id == null ? 'New' : 'Edit')%> Protected Resource</h1>
108
108
< div class = "control-group" id = "clientConfigurationUri" >
109
109
< label class = "control-label" > Client Configuration URL</ label >
110
110
< div class = "controls" >
111
- < pre > < %= client . registration_client_uri ? client . registration_client_uri : 'Will be generated '% > </ pre >
111
+ < pre > < % - client . registration_client_uri ? client . registration_client_uri : 'Will be generated '% > </ pre >
112
112
</ div >
113
113
</ div >
114
114
115
115
< div class = "control-group" id = "registrationAccessToken" >
116
116
< label class = "control-label" > Registration Access Token</ label >
117
117
< div class = "controls" >
118
- < pre > < %= client . registration_access_token ? client . registration_access_token : 'Will be generated '% > </ pre >
118
+ < pre > < % - client . registration_access_token ? client . registration_access_token : 'Will be generated '% > </ pre >
119
119
</ div >
120
120
</ div >
121
121
@@ -159,15 +159,15 @@ <h1><%=(client.client_id == null ? 'New' : 'Edit')%> Protected Resource</h1>
159
159
< div class = "control-group" id = "clientName" >
160
160
< label class = "control-label" > Resource name</ label >
161
161
< div class = "controls" >
162
- < input value = "<%= client.client_name ? client.client_name : ''%>" maxlength = "100" type = "text" class = "" placeholder = "Type something" >
162
+ < input value = "<%- client.client_name ? client.client_name : ''%>" maxlength = "100" type = "text" class = "" placeholder = "Type something" >
163
163
< p class = "help-block" > Human-readable application name</ p >
164
164
</ div >
165
165
</ div >
166
166
167
167
< div class = "control-group" id = "logoUri" >
168
168
< label class = "control-label" > Logo</ label >
169
169
< div class = "controls" >
170
- < input placeholder = "https://" value = "<%= client.logo_uri ? client.logo_uri : ''%>" maxlength = "1000" type = "text" class = "" />
170
+ < input placeholder = "https://" value = "<%- client.logo_uri ? client.logo_uri : ''%>" maxlength = "1000" type = "text" class = "" />
171
171
< p class = "help-block" > URL that points to a logo image, will be displayed on approval page</ p >
172
172
</ div >
173
173
</ div >
@@ -181,23 +181,23 @@ <h1><%=(client.client_id == null ? 'New' : 'Edit')%> Protected Resource</h1>
181
181
< div class = "control-group" id = "tosUri" >
182
182
< label class = "control-label" > Terms of Service</ label >
183
183
< div class = "controls" >
184
- < input placeholder = "https://" value = "<%= client.tos_uri ? client.tos_uri : ''%>" maxlength = "1000" type = "text" class = "" />
184
+ < input placeholder = "https://" value = "<%- client.tos_uri ? client.tos_uri : ''%>" maxlength = "1000" type = "text" class = "" />
185
185
< p class = "help-block" > URL for the Terms of Service of this client, will be displayed to the user</ p >
186
186
</ div >
187
187
</ div >
188
188
189
189
< div class = "control-group" id = "policyUri" >
190
190
< label class = "control-label" > Policy</ label >
191
191
< div class = "controls" >
192
- < input placeholder = "https://" value = "<%= client.policy_uri ? client.policy_uri : ''%>" maxlength = "1000" type = "text" class = "" />
192
+ < input placeholder = "https://" value = "<%- client.policy_uri ? client.policy_uri : ''%>" maxlength = "1000" type = "text" class = "" />
193
193
< p class = "help-block" > URL for the Policy Statement of this client, will be displayed to the user</ p >
194
194
</ div >
195
195
</ div >
196
196
197
197
< div class = "control-group" id = "clientUri" >
198
198
< label class = "control-label" > Home Page</ label >
199
199
< div class = "controls" >
200
- < input placeholder = "https://" value = "<%= client.client_uri ? client.client_uri : ''%>" maxlength = "1000" type = "text" class = "" />
200
+ < input placeholder = "https://" value = "<%- client.client_uri ? client.client_uri : ''%>" maxlength = "1000" type = "text" class = "" />
201
201
< p class = "help-block" > URL for the client's home page, will be displayed to the user</ p >
202
202
</ div >
203
203
</ div >
@@ -206,18 +206,18 @@ <h1><%=(client.client_id == null ? 'New' : 'Edit')%> Protected Resource</h1>
206
206
< label class = "control-label" > < span class = "label label-default nyi" > < i class = "icon-road icon-white" > </ i > NYI </ span > Application Type</ label >
207
207
< div class = "controls" >
208
208
< label class = "radio inline" >
209
- < input type = "radio" name = "applicationType" value = "NATIVE" < %= ( client . application_type = = 'NATIVE' ? 'checked ' : '') % >> Native
209
+ < input type = "radio" name = "applicationType" value = "NATIVE" < % - ( client . application_type = = 'NATIVE' ? 'checked ' : '') % >> Native
210
210
</label >
211
211
< label class = "radio inline" >
212
- < input type = "radio" name = "applicationType" value = "WEB" < %= ( client . application_type = = 'WEB' ? 'checked ' : '') % >> Web
212
+ < input type = "radio" name = "applicationType" value = "WEB" < % - ( client . application_type = = 'WEB' ? 'checked ' : '') % >> Web
213
213
</label >
214
214
</ div >
215
215
</ div >
216
216
217
217
< div class = "control-group" id = "contacts" >
218
218
< label class = "control-label" > Contacts</ label >
219
219
< div class = "controls" >
220
- < span class = "help-block" > List of contacts for adminstrators of this client. Your email address (< %= userInfo . email % > ) will be automatically added to this list on save.</ span >
220
+ < span class = "help-block" > List of contacts for adminstrators of this client. Your email address (< % - userInfo . email % > ) will be automatically added to this list on save.</ span >
221
221
< div > </ div >
222
222
</ div >
223
223
</ div >
@@ -239,19 +239,19 @@ <h1><%=(client.client_id == null ? 'New' : 'Edit')%> Protected Resource</h1>
239
239
< label class = "control-label" > Introspection Endpoint Authentication Method</ label >
240
240
< div class = "controls" >
241
241
< label class = "radio" >
242
- < input type = "radio" name = "tokenEndpointAuthMethod" value = "client_secret_basic" < %= ( client . token_endpoint_auth_method = = 'client_secret_basic' ? 'checked ' : '') % >> Client Secret over HTTP Basic
242
+ < input type = "radio" name = "tokenEndpointAuthMethod" value = "client_secret_basic" < % - ( client . token_endpoint_auth_method = = 'client_secret_basic' ? 'checked ' : '') % >> Client Secret over HTTP Basic
243
243
</label >
244
244
< label class = "radio" >
245
- < input type = "radio" name = "tokenEndpointAuthMethod" value = "client_secret_post" < %= ( client . token_endpoint_auth_method = = 'client_secret_post' ? 'checked ' : '') % >> Client Secret over HTTP POST
245
+ < input type = "radio" name = "tokenEndpointAuthMethod" value = "client_secret_post" < % - ( client . token_endpoint_auth_method = = 'client_secret_post' ? 'checked ' : '') % >> Client Secret over HTTP POST
246
246
</label >
247
247
< label class = "radio" >
248
- < input type = "radio" name = "tokenEndpointAuthMethod" value = "client_secret_jwt" < %= ( client . token_endpoint_auth_method = = 'client_secret_jwt' ? 'checked ' : '') % >> Client Secret via symmetrically-signed JWT assertion
248
+ < input type = "radio" name = "tokenEndpointAuthMethod" value = "client_secret_jwt" < % - ( client . token_endpoint_auth_method = = 'client_secret_jwt' ? 'checked ' : '') % >> Client Secret via symmetrically-signed JWT assertion
249
249
</label >
250
250
< label class = "radio" >
251
- < input type = "radio" name = "tokenEndpointAuthMethod" value = "private_key_jwt" < %= ( client . token_endpoint_auth_method = = 'private_key_jwt' ? 'checked ' : '') % >> Asymmetrically-signed JWT assertion
251
+ < input type = "radio" name = "tokenEndpointAuthMethod" value = "private_key_jwt" < % - ( client . token_endpoint_auth_method = = 'private_key_jwt' ? 'checked ' : '') % >> Asymmetrically-signed JWT assertion
252
252
</label >
253
253
< label class = "radio" >
254
- < input type = "radio" name = "tokenEndpointAuthMethod" value = "none" < %= ( client . token_endpoint_auth_method = = 'none' ? 'checked ' : '') % >> No authentication
254
+ < input type = "radio" name = "tokenEndpointAuthMethod" value = "none" < % - ( client . token_endpoint_auth_method = = 'none' ? 'checked ' : '') % >> No authentication
255
255
</label >
256
256
</ div >
257
257
</ div >
@@ -260,24 +260,24 @@ <h1><%=(client.client_id == null ? 'New' : 'Edit')%> Protected Resource</h1>
260
260
< label class = "control-label" > Introspection Endpoint Authentication Signing Algorithm</ label >
261
261
< div class = "controls" >
262
262
< select >
263
- < option value = "default" < %= client . token_endpoint_auth_signing_alg = = null ? 'selected ' : ''% >> Any allowed </option >
264
- < option value = "HS256" < %= client . token_endpoint_auth_signing_alg = = "HS256" ? 'selected ' : ''% >> HMAC using SHA-256 hash algorithm </option >
265
- < option value = "HS384" < %= client . token_endpoint_auth_signing_alg = = "HS384" ? 'selected ' : ''% >> HMAC using SHA-384 hash algorithm </option >
266
- < option value = "HS512" < %= client . token_endpoint_auth_signing_alg = = "HS512" ? 'selected ' : ''% >> HMAC using SHA-512 hash algorithm </option >
267
- < option value = "RS256" < %= client . token_endpoint_auth_signing_alg = = "RS256" ? 'selected ' : ''% >> RSASSA using SHA-256 hash algorithm </option >
268
- < option value = "RS384" < %= client . token_endpoint_auth_signing_alg = = "RS384" ? 'selected ' : ''% >> RSASSA using SHA-384 hash algorithm </option >
269
- < option value = "RS512" < %= client . token_endpoint_auth_signing_alg = = "RS512" ? 'selected ' : ''% >> RSASSA using SHA-512 hash algorithm </option >
270
- < option value = "ES256" < %= client . token_endpoint_auth_signing_alg = = "ES256" ? 'selected ' : ''% >> ECDSA using P-256 curve and SHA-256 hash algorithm </option >
271
- < option value = "ES384" < %= client . token_endpoint_auth_signing_alg = = "ES384" ? 'selected ' : ''% >> ECDSA using P-384 curve and SHA-384 hash algorithm </option >
272
- < option value = "ES512" < %= client . token_endpoint_auth_signing_alg = = "ES512" ? 'selected ' : ''% >> ECDSA using P-512 curve and SHA-512 hash algorithm </option >
263
+ < option value = "default" < % - client . token_endpoint_auth_signing_alg = = null ? 'selected ' : ''% >> Any allowed </option >
264
+ < option value = "HS256" < % - client . token_endpoint_auth_signing_alg = = "HS256" ? 'selected ' : ''% >> HMAC using SHA-256 hash algorithm </option >
265
+ < option value = "HS384" < % - client . token_endpoint_auth_signing_alg = = "HS384" ? 'selected ' : ''% >> HMAC using SHA-384 hash algorithm </option >
266
+ < option value = "HS512" < % - client . token_endpoint_auth_signing_alg = = "HS512" ? 'selected ' : ''% >> HMAC using SHA-512 hash algorithm </option >
267
+ < option value = "RS256" < % - client . token_endpoint_auth_signing_alg = = "RS256" ? 'selected ' : ''% >> RSASSA using SHA-256 hash algorithm </option >
268
+ < option value = "RS384" < % - client . token_endpoint_auth_signing_alg = = "RS384" ? 'selected ' : ''% >> RSASSA using SHA-384 hash algorithm </option >
269
+ < option value = "RS512" < % - client . token_endpoint_auth_signing_alg = = "RS512" ? 'selected ' : ''% >> RSASSA using SHA-512 hash algorithm </option >
270
+ < option value = "ES256" < % - client . token_endpoint_auth_signing_alg = = "ES256" ? 'selected ' : ''% >> ECDSA using P-256 curve and SHA-256 hash algorithm </option >
271
+ < option value = "ES384" < % - client . token_endpoint_auth_signing_alg = = "ES384" ? 'selected ' : ''% >> ECDSA using P-384 curve and SHA-384 hash algorithm </option >
272
+ < option value = "ES512" < % - client . token_endpoint_auth_signing_alg = = "ES512" ? 'selected ' : ''% >> ECDSA using P-512 curve and SHA-512 hash algorithm </option >
273
273
</ select >
274
274
</ div >
275
275
</ div >
276
276
277
277
< div class = "control-group" id = "jwksUri" >
278
278
< label class = "control-label" > JWK Set</ label >
279
279
< div class = "controls" >
280
- < input placeholder = "https://" value = "<%= client.jwks_uri ? client.jwks_uri : ''%>" maxlength = "1000" type = "text" class = "" />
280
+ < input placeholder = "https://" value = "<%- client.jwks_uri ? client.jwks_uri : ''%>" maxlength = "1000" type = "text" class = "" />
281
281
< p class = "help-block" > URL for the client's JSON Web Key set</ p >
282
282
</ div >
283
283
</ div >
@@ -287,7 +287,7 @@ <h1><%=(client.client_id == null ? 'New' : 'Edit')%> Protected Resource</h1>
287
287
< div class = "tab-pane" id = "resource-json-tab" >
288
288
289
289
< pre >
290
- < %= JSON . stringify ( client , undefined , 2 ) % >
290
+ < % - JSON . stringify ( client , undefined , 2 ) % >
291
291
</ pre >
292
292
293
293
</ div >
0 commit comments