-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
59 lines (59 loc) · 2.12 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html lang="en">
<head>
<title>My Recipe App</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<script src="https://cdn.jsdelivr.net/gh/IdentityModel/[email protected]/dist/oidc-client.js"></script>
<!-- #region snippet-oidc-init -->
<script>
function authRedirect() {
Oidc.Log.logger = console;
Oidc.Log.level = Oidc.Log.DEBUG;
const oidcClient = new Oidc.UserManager({
authority: 'https://auth.oasislabs.com',
client_id: 'CNXmDjhYHpvxp8ufx67gRa1',
redirect_uri: `https://oasislabs.github.io/parcel-static-example-login-with-oasis-frontend/callback`,
response_type: 'code',
scope: 'openid profile email parcel.public',
filterProtocolClaims: false,
loadUserInfo: false,
extraQueryParams: {
audience: 'https://api.oasislabs.com/parcel',
},
extraTokenParams: {
audience: 'https://api.oasislabs.com/parcel',
},
});
oidcClient.signinRedirect();
}
</script>
<!-- #endregion snippet-oidc-init -->
<link rel="stylesheet" type="text/css" href="style.css" />
<link rel="icon" type="image/png" sizes="32x32" href="favicon.ico" />
</head>
<body>
<div class="main">
<div class="sign-up">
<h1>Welcome to Rate your S@andwich</h1>
<h3>The world's leading privacy-first recipe management tool</h3>
<h4><i>Built by Acme Co.</i></h4>
<br />
<h2>Data Privacy</h2>
<p>
Here at Acme ltd., your privacy is very important to us. We've
partnered with Oasis Labs so you can own your recipe data from our
app.
</p>
<p>To set up your Oasis account, click Get Started</p>
<button onclick="authRedirect()" data-cy="sign-up-oasis">
Get started with Oasis
</button>
</div>
</div>
<div class="footer">
<p class="credit">Photo by Brooke Lark on Unsplash</p>
</div>
</body>
</html>