Created
May 11, 2017 15:15
-
-
Save thearrow/f65ca3a2757b3d182bd708f9b0a93e68 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Lock Test</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<script src="http://cdn.auth0.com/js/lock/10.16.0/lock.min.js"></script> | |
</head> | |
<body> | |
<div id="root"> | |
embedded area | |
</div> | |
<script> | |
var lock = new Auth0Lock('{key}', '{url}', { | |
container: 'root', | |
auth: { | |
redirectUrl: 'http://localhost:8000/login', | |
responseType: 'code', | |
params: { | |
scope: 'openid email' // Learn about scopes: https://auth0.com/docs/scopes | |
} | |
} | |
}); | |
lock.show(); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment