-
Notifications
You must be signed in to change notification settings - Fork 11
/
oidc.html
62 lines (57 loc) · 2.54 KB
/
oidc.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!doctype html>
<html class="no-js" lang="en-US">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>OpenID Connect + API Access Management Sample App</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<script>window.html5 || document.write('<script src="js/vendor/html5shiv.js"><\/script>')</script>
<![endif]-->
<!-- Google Fonts -->
<link href='https://fonts.googleapis.com/css?family=Roboto+Slab:400,100,300,700|Lato:400,100,300,700,900' rel='stylesheet' type='text/css'>
<!-- Main Styles -->
<link rel="stylesheet" href="css/animate.css">
<link rel="stylesheet" href="css/oidc-main.css">
<!-- App Script -->
<script data-main="js/oidc-app" src="js/require.js"></script>
<!-- Syntax Highlighting Script -->
<script src="/js/highlight.min.js"></script>
<link rel="stylesheet" href="css/highlight.min.css">
</head>
<body>
<div class="container">
<div class="top">
</div>
<div class="login-box animated fadeInUp">
<div class="box-header">
<h2>Sign In</h2>
</div>
<div class="form">
<label for="username">Username</label>
<input type="text" id="username" required>
<label for="password">Password</label>
<input type="password" id="password" required>
<fieldset class="radiogroup">
<legend>Select token mode</legend>
<ul id="radio-mode" class="radio">
<li><input type="radio" name="mode" value="oidc" checked><label for="mode1">OIDC</label></li>
<li><input type="radio" name="mode" value="oauth"><label for="mode2">OIDC + API Access</label></li>
</ul>
</fieldset>
<button id="btn-sign-in" type="submit" class="button">Sign in with Password</button>
<button id="btn-idp" type="submit" class="button">Sign in with IdP</button>
<button id="btn-refresh" type="submit" class="button">Refresh Tokens</button>
<button id="btn-api-request" type="submit" class="button" disabled>Request Protected Resource (API)</button>
<button id="btn-sign-out" type="submit" class="button">Sign Out</button>
</div>
</div>
</div>
<div class="container">
<div id="claims" class="claims"></div>
<div id="api-resources" class="api-resources"></div>
</div>
</body>
</html>