Skip to content

Commit 91e00d7

Browse files
author
Justin Richer
committed
changed all templates to print escaped characters
1 parent 38b6ab7 commit 91e00d7

File tree

8 files changed

+320
-320
lines changed

8 files changed

+320
-320
lines changed

openid-connect-server-webapp/src/main/webapp/resources/template/admin.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,16 @@
1919

2020
<script type="text/html" id="tmpl-breadcrumbs">
2121
<% if (active == false) { %>
22-
<li><a href="<%=href%>"><%=text%></a> <span class="divider">/</span></li>
22+
<li><a href="<%-href%>"><%-text%></a> <span class="divider">/</span></li>
2323
<% } else { %>
24-
<li class="active"><%=text%></li>
24+
<li class="active"><%-text%></li>
2525
<% } %>
2626
</script>
2727

2828
<!-- list widget -->
2929

3030
<script type="text/html" id="tmpl-list-widget-child">
31-
<td><%=(item.length > 30) ? item.substr(0,27) + '...' : item %></td>
31+
<td><%-(item.length > 30) ? item.substr(0,27) + '...' : item %></td>
3232
<td><a class="btn btn-small btn-delete-list-item" href="#"><i class="icon-minus-sign"></i></a></td>
3333
</script>
3434

@@ -42,7 +42,7 @@
4242
<thead>
4343
<tr>
4444
<th class="control-group">
45-
<input type="text" value="" placeholder="<%=(placeholder) ? placeholder : ''%>"></th>
45+
<input type="text" value="" placeholder="<%-(placeholder) ? placeholder : ''%>"></th>
4646
<th><a class="btn btn-small btn-add-list-item" href="#"><i class="icon-plus-sign"></i></a></th>
4747
</tr>
4848
</thead>
@@ -89,7 +89,7 @@
8989

9090
<script type="text/html" id="tmpl-user-profile-element">
9191

92-
<dt><%= key %></dt>
93-
<dd><%= value %></dd>
92+
<dt><%- key %></dt>
93+
<dd><%- value %></dd>
9494

9595
</script>

openid-connect-server-webapp/src/main/webapp/resources/template/client.html

Lines changed: 134 additions & 134 deletions
Large diffs are not rendered by default.

openid-connect-server-webapp/src/main/webapp/resources/template/dynreg.html

Lines changed: 113 additions & 113 deletions
Large diffs are not rendered by default.

openid-connect-server-webapp/src/main/webapp/resources/template/grant.html

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,28 +94,28 @@
9494
<% if (client.dynamicallyRegistered) { %>
9595
<span class="label label-inverse dynamically-registered"><i class="icon-globe icon-white"></i></span>
9696
<% } %>
97-
<span class="label label-info tokens"><%= grant.approvedAccessTokens.length %></span>
97+
<span class="label label-info tokens"><%- grant.approvedAccessTokens.length %></span>
9898
</td>
9999

100100
<td>
101101

102-
<span title="<%= client.clientId %>"><%= client.clientName != null ? client.clientName : ( client.clientId.substr(0,8) + '...' ) %></span>
102+
<span title="<%- client.clientId %>"><%- client.clientName != null ? client.clientName : ( client.clientId.substr(0,8) + '...' ) %></span>
103103
<div class="client-more-info-block"></div>
104104
<div class="scope-list"></div>
105105
</td>
106106

107107

108108
<td>
109109
<div>
110-
<i>Authorized:</i> <span title="<%= formattedDate.hoverCreationDate %>"><%= formattedDate.displayCreationDate %></span>
110+
<i>Authorized:</i> <span title="<%- formattedDate.hoverCreationDate %>"><%- formattedDate.displayCreationDate %></span>
111111
</div>
112112

113113
<div>
114-
<i>Last accessed:</i> <span title="<%= formattedDate.hoverAccessDate %>"><%= formattedDate.displayAccessDate %></span>
114+
<i>Last accessed:</i> <span title="<%- formattedDate.hoverAccessDate %>"><%- formattedDate.displayAccessDate %></span>
115115
</div>
116116

117117
<div>
118-
<i>Expires:</i> <span title="<%= formattedDate.hoverTimeoutDate %>"><%= formattedDate.displayTimeoutDate %></span>
118+
<i>Expires:</i> <span title="<%- formattedDate.hoverTimeoutDate %>"><%- formattedDate.displayTimeoutDate %></span>
119119
</div>
120120
</td>
121121

openid-connect-server-webapp/src/main/webapp/resources/template/rsreg.html

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
<script type="text/html" id="tmpl-rsreg-resource-form">
4040

41-
<h1><%=(client.client_id == null ? 'New' : 'Edit')%> Protected Resource</h1>
41+
<h1><%-(client.client_id == null ? 'New' : 'Edit')%> Protected Resource</h1>
4242

4343

4444
<form class="form-horizontal tabbable">
@@ -76,7 +76,7 @@ <h1><%=(client.client_id == null ? 'New' : 'Edit')%> Protected Resource</h1>
7676
<div class="control-group" id="clientId">
7777
<label class="control-label">Client ID</label>
7878
<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>
8080
</div>
8181
</div>
8282

@@ -87,7 +87,7 @@ <h1><%=(client.client_id == null ? 'New' : 'Edit')%> Protected Resource</h1>
8787
<div class="controls">
8888
<% if (client.client_id) { %>
8989
<% if (client.client_secret) { %>
90-
<pre><%= client.client_secret %></pre>
90+
<pre><%- client.client_secret %></pre>
9191
<% } else { %>
9292
<% if (client.token_endpoint_auth_method == 'none') { %>
9393
<pre>None (public client)</pre>
@@ -108,14 +108,14 @@ <h1><%=(client.client_id == null ? 'New' : 'Edit')%> Protected Resource</h1>
108108
<div class="control-group" id="clientConfigurationUri">
109109
<label class="control-label">Client Configuration URL</label>
110110
<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>
112112
</div>
113113
</div>
114114

115115
<div class="control-group" id="registrationAccessToken">
116116
<label class="control-label">Registration Access Token</label>
117117
<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>
119119
</div>
120120
</div>
121121

@@ -159,15 +159,15 @@ <h1><%=(client.client_id == null ? 'New' : 'Edit')%> Protected Resource</h1>
159159
<div class="control-group" id="clientName">
160160
<label class="control-label">Resource name</label>
161161
<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">
163163
<p class="help-block">Human-readable application name</p>
164164
</div>
165165
</div>
166166

167167
<div class="control-group" id="logoUri">
168168
<label class="control-label">Logo</label>
169169
<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=""/>
171171
<p class="help-block">URL that points to a logo image, will be displayed on approval page</p>
172172
</div>
173173
</div>
@@ -181,23 +181,23 @@ <h1><%=(client.client_id == null ? 'New' : 'Edit')%> Protected Resource</h1>
181181
<div class="control-group" id="tosUri">
182182
<label class="control-label">Terms of Service</label>
183183
<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=""/>
185185
<p class="help-block">URL for the Terms of Service of this client, will be displayed to the user</p>
186186
</div>
187187
</div>
188188

189189
<div class="control-group" id="policyUri">
190190
<label class="control-label">Policy</label>
191191
<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=""/>
193193
<p class="help-block">URL for the Policy Statement of this client, will be displayed to the user</p>
194194
</div>
195195
</div>
196196

197197
<div class="control-group" id="clientUri">
198198
<label class="control-label">Home Page</label>
199199
<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=""/>
201201
<p class="help-block">URL for the client's home page, will be displayed to the user</p>
202202
</div>
203203
</div>
@@ -206,18 +206,18 @@ <h1><%=(client.client_id == null ? 'New' : 'Edit')%> Protected Resource</h1>
206206
<label class="control-label"><span class="label label-default nyi"><i class="icon-road icon-white"></i> NYI </span> Application Type</label>
207207
<div class="controls">
208208
<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
210210
</label>
211211
<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
213213
</label>
214214
</div>
215215
</div>
216216

217217
<div class="control-group" id="contacts">
218218
<label class="control-label">Contacts</label>
219219
<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>
221221
<div></div>
222222
</div>
223223
</div>
@@ -239,19 +239,19 @@ <h1><%=(client.client_id == null ? 'New' : 'Edit')%> Protected Resource</h1>
239239
<label class="control-label">Introspection Endpoint Authentication Method</label>
240240
<div class="controls">
241241
<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
243243
</label>
244244
<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
246246
</label>
247247
<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
249249
</label>
250250
<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
252252
</label>
253253
<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
255255
</label>
256256
</div>
257257
</div>
@@ -260,24 +260,24 @@ <h1><%=(client.client_id == null ? 'New' : 'Edit')%> Protected Resource</h1>
260260
<label class="control-label">Introspection Endpoint Authentication Signing Algorithm</label>
261261
<div class="controls">
262262
<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>
273273
</select>
274274
</div>
275275
</div>
276276

277277
<div class="control-group" id="jwksUri">
278278
<label class="control-label">JWK Set</label>
279279
<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=""/>
281281
<p class="help-block">URL for the client's JSON Web Key set</p>
282282
</div>
283283
</div>
@@ -287,7 +287,7 @@ <h1><%=(client.client_id == null ? 'New' : 'Edit')%> Protected Resource</h1>
287287
<div class="tab-pane" id="resource-json-tab">
288288

289289
<pre>
290-
<%= JSON.stringify(client, undefined, 2) %>
290+
<%- JSON.stringify(client, undefined, 2) %>
291291
</pre>
292292

293293
</div>

0 commit comments

Comments
 (0)