Skip to content

Commit ef364c3

Browse files
author
Sachin Maheshwari
committed
for getting token locally to run any application
1 parent c7ebdb3 commit ef364c3

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

web-assets/local/README

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Open index.html to get the token locally.

web-assets/local/index.html

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<title>Auth0</title>
6+
<meta charset="utf-8" />
7+
<script language="javascript" type="text/javascript"
8+
src="https://accounts-auth0.topcoder-dev.com/setupAuth0WithRedirect.js"></script>
9+
</head>
10+
11+
<body>
12+
<script>
13+
window.onload = authSetup;
14+
15+
function doLogin() {
16+
window.location = './?retUrl=http://' + location.host
17+
}
18+
19+
function doLogout() {
20+
window.location = './?logout=true&retUrl=http://' + location.host
21+
}
22+
</script>
23+
<div>
24+
<p>Instructions:</p>
25+
<p>
26+
Run this index.html as local server like - http://localhost:3000 and keep open in seperate tab for
27+
refreshing token.
28+
</p>
29+
</div>
30+
<p>----------------------------------</p>
31+
<div>
32+
<span>Click Here To Login! </span><span><a href="#" onclick="doLogin();">Login</a></span>
33+
</div>
34+
<p>----------------------------------</p>
35+
<div>
36+
<span>Click Here To Logout! </span> <span> <a href="#" onclick="doLogout();">Logout</a> </span>
37+
</div>
38+
</body>
39+
40+
</html>

0 commit comments

Comments
 (0)