This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/templates/generatedtoken.html

28 lines
1 KiB
HTML
Raw Permalink Normal View History

2019-11-12 16:09:47 +00:00
<html>
<title>OAuth Access Token · Quay</title>
<head>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css">
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.no-icons.min.css">
<link href='//fonts.googleapis.com/css?family=Droid+Sans:400,700' rel='stylesheet' type='text/css'>
<script type="text/javascript">
function setToken() {
var hash = document.location.hash.substr(1);
var pairs = hash.split('&');
for (var i = 0; i < pairs.length; ++i) {
var pair = pairs[i];
var kv = pair.split('=');
if (kv[0] == 'access_token') {
document.getElementById('accesstoken').appendChild(document.createTextNode(kv[1]));
}
}
}
</script>
</head>
<body onload="setToken()">
<div class="container" style="margin-top: 20px">
<img src="{{ config_set['BRANDING']['logo'] }}">
<h5>Access Token: <span id="accesstoken"></span></h5>
</div>
</body>
</html>