-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
41 lines (40 loc) · 1.39 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<!DOCTYPE html>
<!-- Demonstration of an OIDC client with OAuth2 access type "public"
* See also: https://www.rfc-editor.org/rfc/rfc6749#section-2.1
Demonstration of the Keycloak JavaScript adapter
* See also: https://github.com/keycloak/keycloak-documentation/blob/main/securing_apps/topics/oidc/javascript-adapter.adoc -->
<html>
<head>
<script src="jquery.min.js"></script>
<script src="require.js"></script>
<script src="index.js"></script>
<link rel="stylesheet" href="index.css"></link>
<link rel="shortcut icon" href="#">
</head>
<body>
<h1>Public Client Example</h1>
<h2>Client Information</h2>
<ul class="info">
<li>Client ID: <span class="clientId"></span></li>
</ul>
<h2>Personal Information</h2>
<ul class="info">
<li>Username: <span id="username"></span></li>
<li>Email: <span id="email"></span></li>
<li>Full Name: <span id="name"></span></li>
<li>First: <span id="givenName"></span></li>
<li>Last: <span id="familyName"></span></li>
</ul>
<h2>Resource Access</h2>
<ul class="info">
<li>Client roles: <span id="client_roles"></span></li>
</ul>
<nav>
<button onclick="reloadData()">Reload data</button>
</nav>
<footer>
<p class="note">Note: This request was made by user <span id="subject"></span>.</p>
<div id="debug"></div>
</footer>
</body>
</html>