Skip to content

Instantly share code, notes, and snippets.

@thivi
Last active November 12, 2021 22:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thivi/12077dc5463515af34875c7476093dc4 to your computer and use it in GitHub Desktop.
Save thivi/12077dc5463515af34875c7476093dc4 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>Asgardeo SPA SDK - Sample</title>
<meta charset="UTF-8" />
<link
href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3"
crossorigin="anonymous"
/>
</head>
<body>
<div
id="app"
class="vh-100 d-flex flex-column justify-content-center container"
>
<div id="authenticated" style="display: none;">
<div>
<h2 id="welcome">Hello</h2>
</div>
<div id="message">
<h6>You've successfully authenticated yourself!</h6>
</div>
</div>
<div id="unauthenticated">
<h6>You need to log in to use this application.</h6>
<button onclick="login()" class="btn btn-primary">Login</button>
</div>
</div>
<script src="index.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment