Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Roles checkout #438

Merged
merged 5 commits into from
Aug 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions local/login-locally/README
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,3 @@
3. Now you can open http://localhost:5000 in browser and click login (wait it a little bit, it may take time to redirect you). After you login, you should be redirected back to http://localhost:3000

PS. You may also download latest version of `setupAuth0WithRedirect.js` file from here - https://github.com/topcoder-platform/tc-auth-lib/blob/dev/web-assets/js/setupAuth0WithRedirect.js




20 changes: 11 additions & 9 deletions local/login-locally/index.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
<!DOCTYPE html>
<html>

<head>
<head>
<title>Auth0</title>
<meta charset="utf-8" />
<script language="javascript" type="text/javascript" src="./setupAuth0WithRedirect.js"></script>
</head>
<script
language="javascript"
type="text/javascript"
src="./setupAuth0WithRedirect.js"
></script>
</head>

<body>
<body>
Loaded...redirecting to auth0.(see browser console log)
<script>
window.onload = authSetup;
window.onload = authSetup;
</script>
<a href="?retUrl=http://localhost:3000" >Login</a>
</body>

<a href="?retUrl=http://localhost:3000">Login</a>
</body>
</html>
Loading