forked from R-Gokul/Aws-Coginito-JS-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
144 lines (119 loc) · 5.2 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
<html>
<head>
<link rel="stylesheet" type="text/css" href="index.css">
<!-- <script src="node_modules/amazon-cognito-identity-js/dist/aws-cognito-sdk.min.js"></script> -->
<script src="https://cdn.rawgit.com/aws/amazon-cognito-identity-js/3e960090/dist/aws-cognito-sdk.min.js"></script>
<!-- <script src="node_modules/amazon-cognito-identity-js/dist/amazon-cognito-identity.min.js"></script> -->
<script src="https://cdn.rawgit.com/aws/amazon-cognito-identity-js/3e960090/dist/amazon-cognito-identity.min.js"></script>
<!-- optional: only if you use other AWS services -->
<!-- <script src="node_modules/aws-sdk/dist/aws-sdk.min.js"></script> -->
<script src="https://cdn.rawgit.com/aws/aws-sdk-js/d3f0701e/dist/aws-sdk.min.js"></script>
</head>
<body>
<h1 style="text-align:center">AWS Coginto Login For Web Client (JS SDK)</h1>
<form name="formConfig">
<h2>Configure</h2>
<div>
<label for="UserPoolId">UserPoolId</label>
<input type="text" placeholder="UserPoolId" name="UserPoolId">
</div>
<div>
<label for="ClientId">ClientId</label>
<input type="text" placeholder="ClientId" name="ClientId">
</div>
<div class="foot">
<div class="submit">
<button id="clearButton">Clear</button>
<input type="submit" value="Configure">
</div>
</div>
</form>
<form name="signupForm">
<h2>Sign Up</h2>
<div>
<label for="email">Email (username alias)</label>
<input type="email" placeholder="Email" name="email">
</div>
<div>
<label for="name">Name</label>
<input type="text" placeholder="Name" name="name"
value="John Smith">
</div>
<div>
<label for="password">Password</label>
<input type="password" placeholder="Password" name="password"
value="Testing123!"">
</div>
<div>
<label for="phone_number">Phone Number</label>
<input type="tel" placeholder="Phone Number" name="phone_number"
value="+16171234567">
</div>
<div>
<label for="gender" class="label">Gender</label>
<group>
<input type="radio" name="gender" value="male"
checked>
<label for="male">Male</label>
<input type="radio" name="gender" value="female">
<label for="female">Female</label>
</group>
</div>
<div>
<label for="birthdate">Birth Date</label>
<input type="date" name="birthdate" placeholder="Birth Date"
value="1972-06-08">
</div>
<div class="messages">
<div class="errors"></div>
<div class="success"></div>
</div>
<div class="foot">
<div class="submit">
<input type="submit" value="Sign Up">
</div>
</div>
</form>
<form name="confirmUser">
<h2>Confirm User</h2>
<div>
<label for="email">Email (username alias)</label>
<input type="email" placeholder="Email" name="email">
</div>
<div>
<label for="code">Confirm Code</label>
<input type="text" placeholder="Confirm Code" name="code">
</div>
<div class="messages">
<div class="errors"></div>
<div class="success"></div>
</div>
<div class="foot">
<div class="submit">
<input type="submit" value="Confirm">
</div>
</div>
</form>
<form name="SignInForm">
<h2>Sign In User</h2>
<div>
<label for="email">Email (username alias)</label>
<input type="email" placeholder="Email" name="email">
</div>
<div>
<label for="code">Password</label>
<input type="password" placeholder="Password" name="password">
</div>
<div class="messages">
<div class="errors"></div>
<div class="success"></div>
</div>
<div class="foot">
<div class="submit">
<input type="submit" value="Login">
</div>
</div>
</form>
<script src="index.js"></script>
</body>
</html>