|
10 | 10 | <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>
|
11 | 11 | <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>
|
12 | 12 | <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>
|
13 |
| - <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> |
| 13 | + <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> |
14 | 14 | </ul>
|
15 | 15 | <div class="tab-content">
|
16 | 16 |
|
|
187 | 187 | <label class="custom-switch">
|
188 | 188 | <input type="checkbox" class="custom-switch-input" name="openidc_enabled" value="1"<%- openidc_enabled ? ' checked' : '' %>>
|
189 | 189 | <span class="custom-switch-indicator"></span>
|
190 |
| - <span class="custom-switch-description">Use OpenID Connect authentication</span> |
| 190 | + <span class="custom-switch-description"><%- i18n('proxy-hosts', 'oidc-enabled') %></span> |
191 | 191 | </label>
|
192 | 192 | </div>
|
193 | 193 | </div>
|
194 | 194 | <div class="col-sm-12 col-md-12 openidc">
|
195 | 195 | <div class="form-group">
|
196 |
| - <label class="form-label">Redirect URI<span class="form-required">*</span></label> |
| 196 | + <label class="form-label"><%- i18n('proxy-hosts', 'oidc-redirect-uri') %><span class="form-required">*</span></label> |
197 | 197 | <input type="text" name="openidc_redirect_uri" class="form-control text-monospace" placeholder="" value="<%- openidc_redirect_uri %>" autocomplete="off" maxlength="255" required>
|
198 | 198 | </div>
|
199 | 199 | </div>
|
200 | 200 | <div class="col-sm-12 col-md-12 openidc">
|
201 | 201 | <div class="form-group">
|
202 |
| - <label class="form-label">Well-known discovery endpoint<span class="form-required">*</span></label> |
| 202 | + <label class="form-label"><%- i18n('proxy-hosts', 'oidc-discovery-endpoint') %><span class="form-required">*</span></label> |
203 | 203 | <input type="text" name="openidc_discovery" class="form-control text-monospace" placeholder="" value="<%- openidc_discovery %>" autocomplete="off" maxlength="255" required>
|
204 | 204 | </div>
|
205 | 205 | </div>
|
206 | 206 | <div class="col-sm-12 col-md-12 openidc">
|
207 | 207 | <div class="form-group">
|
208 |
| - <label class="form-label">Token endpoint auth method<span class="form-required">*</span></label> |
| 208 | + <label class="form-label"><%- i18n('proxy-hosts', 'oidc-token-auth-method') %><span class="form-required">*</span></label> |
209 | 209 | <select name="openidc_auth_method" class="form-control custom-select" placeholder="client_secret_post">
|
210 | 210 | <option value="client_secret_post" <%- openidc_auth_method === 'client_secret_post' ? 'selected' : '' %>>client_secret_post</option>
|
211 | 211 | <option value="client_secret_basic" <%- openidc_auth_method === 'client_secret_basic' ? 'selected' : '' %>>client_secret_basic</option>
|
|
214 | 214 | </div>
|
215 | 215 | <div class="col-sm-12 col-md-12 openidc">
|
216 | 216 | <div class="form-group">
|
217 |
| - <label class="form-label">Client ID<span class="form-required">*</span></label> |
| 217 | + <label class="form-label"><%- i18n('proxy-hosts', 'oidc-client-id') %><span class="form-required">*</span></label> |
218 | 218 | <input type="text" name="openidc_client_id" class="form-control text-monospace" placeholder="" value="<%- openidc_client_id %>" autocomplete="off" maxlength="255" required>
|
219 | 219 | </div>
|
220 | 220 | </div>
|
221 | 221 | <div class="col-sm-12 col-md-12 openidc">
|
222 | 222 | <div class="form-group">
|
223 |
| - <label class="form-label">Client secret<span class="form-required">*</span></label> |
| 223 | + <label class="form-label"><%- i18n('proxy-hosts', 'oidc-client-secret') %><span class="form-required">*</span></label> |
224 | 224 | <input type="text" name="openidc_client_secret" class="form-control text-monospace" placeholder="" value="<%- openidc_client_secret %>" autocomplete="off" maxlength="255" required>
|
225 | 225 | </div>
|
226 | 226 | </div>
|
|
230 | 230 | <label class="custom-switch">
|
231 | 231 | <input type="checkbox" class="custom-switch-input" name="openidc_restrict_users_enabled" value="1"<%- openidc_restrict_users_enabled ? ' checked' : '' %>>
|
232 | 232 | <span class="custom-switch-indicator"></span>
|
233 |
| - <span class="custom-switch-description">Allow only these user emails</span> |
| 233 | + <span class="custom-switch-description"><%- i18n('proxy-hosts', 'oidc-allow-only-emails') %></span> |
234 | 234 | </label>
|
235 | 235 | </div>
|
236 | 236 | </div>
|
237 | 237 | <div class="col-sm-12 col-md-12 openidc_users">
|
238 | 238 | <div class="form-group">
|
239 |
| - <label class="form-label">Allowed email addresses<span class="form-required">*</span></label> |
| 239 | + <label class="form-label"><%- i18n('proxy-hosts', 'oidc-allowed-emails') %><span class="form-required">*</span></label> |
240 | 240 | <input type="text" name="openidc_allowed_users" class="form-control" id="openidc_allowed_users" value="<%- openidc_allowed_users.join(',') %>" required>
|
241 | 241 | </div>
|
242 | 242 | </div>
|
|
0 commit comments