Also: - rearranged API calls to be in alphabetical order (except the bearer stuff at the top) - modified the API base URL and Auth0 renewal URLs to be derived from the browser's location (localhost / prod both work now with no change)
22 lines
665 B
HTML
22 lines
665 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<script src="https://cdn.auth0.com/js/auth0/8.9/auth0.min.js"></script>
|
|
<script>
|
|
var webAuth = new auth0.WebAuth({
|
|
domain: 'djs-consulting.auth0.com',
|
|
clientID: 'Of2s0RQCQ3mt3dwIkOBY5h85J9sXbF2n',
|
|
scope: 'openid profile email',
|
|
responseType: 'token id_token',
|
|
redirectUri: location.protocol + '//' + location.host + '/static/silent.html'
|
|
})
|
|
</script>
|
|
<script>
|
|
webAuth.parseHash(window.location.hash, function (err, response) {
|
|
parent.postMessage(err || response, location.protocol + '//' + location.host);
|
|
})
|
|
</script>
|
|
</head>
|
|
<body></body>
|
|
</html> |