|
11 | 11 | <li role="presentation" class="nav-item"><a href="#locations" aria-controls="tab4" role="tab" data-toggle="tab" class="nav-link"><i class="fe fe-layers"></i> <%- i18n('all-hosts', 'locations') %></a></li>
|
12 | 12 | <li role="presentation" class="nav-item"><a href="#ssl-options" aria-controls="tab2" role="tab" data-toggle="tab" class="nav-link"><i class="fe fe-shield"></i> <%- i18n('str', 'ssl') %></a></li>
|
13 | 13 | <li role="presentation" class="nav-item"><a href="#advanced" aria-controls="tab3" role="tab" data-toggle="tab" class="nav-link"><i class="fe fe-settings"></i> <%- i18n('all-hosts', 'advanced') %></a></li>
|
14 |
| - <li role="presentation" class="nav-item"><a href="#openidc" aria-controls="tab3" role="tab" data-toggle="tab" class="nav-link"><i class="fe fe-settings"></i>OpenID Connect</a></li> |
| 14 | + <li role="presentation" class="nav-item"><a href="#openidc" aria-controls="tab3" role="tab" data-toggle="tab" class="nav-link"><i class="fe fe-settings"></i><%- i18n('proxy-hosts', 'oidc') %></a></li> |
15 | 15 | </ul>
|
16 | 16 | <div class="tab-content">
|
17 | 17 |
|
|
280 | 280 | <label class="custom-switch">
|
281 | 281 | <input type="checkbox" class="custom-switch-input" name="openidc_enabled" value="1"<%- openidc_enabled ? ' checked' : '' %>>
|
282 | 282 | <span class="custom-switch-indicator"></span>
|
283 |
| - <span class="custom-switch-description">Use OpenID Connect authentication</span> |
| 283 | + <span class="custom-switch-description"><%- i18n('proxy-hosts', 'oidc-enabled') %></span> |
284 | 284 | </label>
|
285 | 285 | </div>
|
286 | 286 | </div>
|
287 | 287 | <div class="col-sm-12 col-md-12 openidc">
|
288 | 288 | <div class="form-group">
|
289 |
| - <label class="form-label">Redirect URI<span class="form-required">*</span></label> |
| 289 | + <label class="form-label"><%- i18n('proxy-hosts', 'oidc-redirect-uri') %><span class="form-required">*</span></label> |
290 | 290 | <input type="text" name="openidc_redirect_uri" class="form-control text-monospace" placeholder="" value="<%- openidc_redirect_uri %>" autocomplete="off" maxlength="255" required>
|
291 | 291 | </div>
|
292 | 292 | </div>
|
293 | 293 | <div class="col-sm-12 col-md-12 openidc">
|
294 | 294 | <div class="form-group">
|
295 |
| - <label class="form-label">Well-known discovery endpoint<span class="form-required">*</span></label> |
| 295 | + <label class="form-label"><%- i18n('proxy-hosts', 'oidc-discovery-endpoint') %><span class="form-required">*</span></label> |
296 | 296 | <input type="text" name="openidc_discovery" class="form-control text-monospace" placeholder="" value="<%- openidc_discovery %>" autocomplete="off" maxlength="255" required>
|
297 | 297 | </div>
|
298 | 298 | </div>
|
299 | 299 | <div class="col-sm-12 col-md-12 openidc">
|
300 | 300 | <div class="form-group">
|
301 |
| - <label class="form-label">Token endpoint auth method<span class="form-required">*</span></label> |
| 301 | + <label class="form-label"><%- i18n('proxy-hosts', 'oidc-token-auth-method') %><span class="form-required">*</span></label> |
302 | 302 | <select name="openidc_auth_method" class="form-control custom-select" placeholder="client_secret_post">
|
303 | 303 | <option value="client_secret_post" <%- openidc_auth_method === 'client_secret_post' ? 'selected' : '' %>>client_secret_post</option>
|
304 | 304 | <option value="client_secret_basic" <%- openidc_auth_method === 'client_secret_basic' ? 'selected' : '' %>>client_secret_basic</option>
|
|
307 | 307 | </div>
|
308 | 308 | <div class="col-sm-12 col-md-12 openidc">
|
309 | 309 | <div class="form-group">
|
310 |
| - <label class="form-label">Client ID<span class="form-required">*</span></label> |
| 310 | + <label class="form-label"><%- i18n('proxy-hosts', 'oidc-client-id') %><span class="form-required">*</span></label> |
311 | 311 | <input type="text" name="openidc_client_id" class="form-control text-monospace" placeholder="" value="<%- openidc_client_id %>" autocomplete="off" maxlength="255" required>
|
312 | 312 | </div>
|
313 | 313 | </div>
|
314 | 314 | <div class="col-sm-12 col-md-12 openidc">
|
315 | 315 | <div class="form-group">
|
316 |
| - <label class="form-label">Client secret<span class="form-required">*</span></label> |
| 316 | + <label class="form-label"><%- i18n('proxy-hosts', 'oidc-client-secret') %><span class="form-required">*</span></label> |
317 | 317 | <input type="text" name="openidc_client_secret" class="form-control text-monospace" placeholder="" value="<%- openidc_client_secret %>" autocomplete="off" maxlength="255" required>
|
318 | 318 | </div>
|
319 | 319 | </div>
|
|
323 | 323 | <label class="custom-switch">
|
324 | 324 | <input type="checkbox" class="custom-switch-input" name="openidc_restrict_users_enabled" value="1"<%- openidc_restrict_users_enabled ? ' checked' : '' %>>
|
325 | 325 | <span class="custom-switch-indicator"></span>
|
326 |
| - <span class="custom-switch-description">Allow only these user emails</span> |
| 326 | + <span class="custom-switch-description"><%- i18n('proxy-hosts', 'oidc-allow-only-emails') %></span> |
327 | 327 | </label>
|
328 | 328 | </div>
|
329 | 329 | </div>
|
330 | 330 | <div class="col-sm-12 col-md-12 openidc_users">
|
331 | 331 | <div class="form-group">
|
332 |
| - <label class="form-label">Allowed email addresses<span class="form-required">*</span></label> |
| 332 | + <label class="form-label"><%- i18n('proxy-hosts', 'oidc-allowed-emails') %><span class="form-required">*</span></label> |
333 | 333 | <input type="text" name="openidc_allowed_users" class="form-control" id="openidc_allowed_users" value="<%- openidc_allowed_users.join(',') %>" required>
|
334 | 334 | </div>
|
335 | 335 | </div>
|
|
0 commit comments