hello-world-walkthroughipv6v0.98-seriesv0.98.2v0.98.3v0.99v1.0v1.1
|
Last change
on this file since dfa9c9 was
dfa9c9,
checked in by Jose Benito <jose.benito.gonzalez@…>, 18 months ago
|
|
[IMP] Add global option for persistent signatures
|
-
Property mode set to
100644
|
|
File size:
2.9 KB
|
| Line | |
|---|
| 1 | <form method="POST" action="${urlHandlers.UHAdminAPIOptionsSet.getURL()}"> |
|---|
| 2 | <table class="groupTable"> |
|---|
| 3 | <tr> |
|---|
| 4 | <td> |
|---|
| 5 | <div class="groupTitle">${ _("API Options") }</div> |
|---|
| 6 | </td> |
|---|
| 7 | </tr> |
|---|
| 8 | <tr> |
|---|
| 9 | <td class="dataCaptionTD"><span class="dataCaptionFormat">HTTPS</span></td> |
|---|
| 10 | <td class="blacktext"> |
|---|
| 11 | <input type="checkbox" name="httpsRequired" id="httpsRequired" value="1"${' checked="checked"' if httpsRequired else ''} /> |
|---|
| 12 | <label for="httpsRequired">${ _("Require HTTPS for authenticated API requests")}</label> |
|---|
| 13 | </td> |
|---|
| 14 | </tr> |
|---|
| 15 | <tr> |
|---|
| 16 | <td class="dataCaptionTD"><span class="dataCaptionFormat">Persistent signatures</span></td> |
|---|
| 17 | <td class="blacktext"> |
|---|
| 18 | <input type="checkbox" name="persistentAllowed" id="persistentAllowed" value="1"${' checked="checked"' if persistentAllowed else ''} /> |
|---|
| 19 | <label for="persistentAllowed">${ _("Allow users to enable persistent signatures (without timestamp)")}</label> |
|---|
| 20 | </td> |
|---|
| 21 | </tr> |
|---|
| 22 | <tr> |
|---|
| 23 | <td class="dataCaptionTD"><span class="dataCaptionFormat">${ _("API mode")}</span></td> |
|---|
| 24 | <td class="blacktext"> |
|---|
| 25 | <select name="apiMode"> |
|---|
| 26 | <option value="0"${' selected="selected"' if apiMode == 0 else ''}>${ _("Public requests without API key, authenticated requests with API key") }</option> |
|---|
| 27 | <option value="1"${' selected="selected"' if apiMode == 1 else ''}>${ _("All requests require an API key") }</option> |
|---|
| 28 | <option value="2"${' selected="selected"' if apiMode == 2 else ''}>${ _("Public requests without API key, authenticated requests with API key and signature") }</option> |
|---|
| 29 | <option value="3"${' selected="selected"' if apiMode == 3 else ''}>${ _("All requests require an API key, authenticated requests additionally need a signature") }</option> |
|---|
| 30 | <option value="4"${' selected="selected"' if apiMode == 4 else ''}>${ _("All requests require an API key and a signature") }</option> |
|---|
| 31 | </select> |
|---|
| 32 | </td> |
|---|
| 33 | </tr> |
|---|
| 34 | <tr> |
|---|
| 35 | <td class="dataCaptionTD"><span class="dataCaptionFormat">${ _("Cache TTL (seconds)") }</span></td> |
|---|
| 36 | <td class="blacktext"> |
|---|
| 37 | <input type="text" name="apiCacheTTL" id="apiCacheTTL" value="${apiCacheTTL}" /> |
|---|
| 38 | </td> |
|---|
| 39 | </tr> |
|---|
| 40 | <tr> |
|---|
| 41 | <td class="dataCaptionTD"><span class="dataCaptionFormat">${ _("Signature TTL (seconds)") }</span></td> |
|---|
| 42 | <td class="blacktext"> |
|---|
| 43 | <input type="text" name="apiSignatureTTL" id="apiSignatureTTL" value="${apiSignatureTTL}" /> |
|---|
| 44 | </td> |
|---|
| 45 | </tr> |
|---|
| 46 | <tr> |
|---|
| 47 | <td></td> |
|---|
| 48 | <td><input type="submit" value="${_('Save')}" /></td> |
|---|
| 49 | </tr> |
|---|
| 50 | </table> |
|---|
| 51 | </form> |
|---|
Note: See
TracBrowser
for help on using the repository browser.