aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2021-11-16 22:21:10 -0800
committerMike Crute <mike@crute.us>2021-11-17 07:56:17 -0800
commitbcd64c17f857feda40fa4f1ba4e1aa910bbeb567 (patch)
tree3d7378aeec31fd48e25e2142db57c49fa1390538
parentd4906380eaa90d66a524c76a85d8431176b6877d (diff)
downloadcloud-identity-broker-bcd64c17f857feda40fa4f1ba4e1aa910bbeb567.tar.bz2
cloud-identity-broker-bcd64c17f857feda40fa4f1ba4e1aa910bbeb567.tar.xz
cloud-identity-broker-bcd64c17f857feda40fa4f1ba4e1aa910bbeb567.zip
Make index template backwards compatible
-rw-r--r--templates/index.tpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/index.tpl b/templates/index.tpl
index 2a5e853..98ca31a 100644
--- a/templates/index.tpl
+++ b/templates/index.tpl
@@ -179,7 +179,7 @@
179 } 179 }
180 180
181 function populateAPIKey() { 181 function populateAPIKey() {
182 document.querySelector("#api-key textarea").innerText = "Bearer " + getCookie("github-token"); 182 document.querySelector("#api-key textarea").innerText = getCookie("github-token");
183 document.querySelector("#session-expires").innerText = parseJWTExpires(getCookie("github-token")); 183 document.querySelector("#session-expires").innerText = parseJWTExpires(getCookie("github-token"));
184 } 184 }
185 185
@@ -200,7 +200,7 @@
200 200
201 <h1>API Key</h1> 201 <h1>API Key</h1>
202 <div id="api-key"> 202 <div id="api-key">
203 <p>To access <a href="/api/account">the API</a> set the value of <tt>Authorization</tt> header to:</p> 203 <p>To access <a href="/api/account">the API</a> set the header <tt>Authorization: Bearer {token}</tt> to the token below:</p>
204 <textarea>Bearer {token}</textarea> 204 <textarea>Bearer {token}</textarea>
205 <p><b>Token Expires:</b> <span id="session-expires"></span></p> 205 <p><b>Token Expires:</b> <span id="session-expires"></span></p>
206 </div> 206 </div>