Hi there,
I am trying to follow the tutorial: Test SAML SSO with Auth0 as Service Provider and Identity Provider
step by step.
All goes fine.
Unfortunately, the last step, when I open the simple HTML app,
The login button could not work.
The HTML:
<HTML>
<BODY>
<p> Click on the button to log in </p>
<script src="https://cdn.auth0.com/js/lock/11.14/lock.min.js"></script>
<script type="text/javascript">
var lock = new Auth0Lock('vgRH8Hb3bBt94320kT1WIe7TrqgINyk5', 'my_domain_here.us.auth0.com',{
auth: {
redirectUrl: 'http://jwt.io',
audience: 'https://your-audience.com',
responseType: 'token',
params: {scope: 'openid'}
}
});
function signin() {
lock.show();
}
</script>
<button onclick="signin()">Login</button>
</BODY>
</HTML>
The error caught by Chrome:
index.js:493 Uncaught Error: Error: An error occurred when fetching client data for Lock: https://cdn.us.auth0.com/client/vgRH8Hb3bBt94320kT1WIe7TrqgINyk5.js?t1663261365919 could not be loaded.
at index.js:493:7
I have read all the similar topics online. I have checked the client ID and domain are exactly the same. No extensions are used in the browser. Tried with Chrome, firefox and IE. ALL the same result.
I have followed every steps in the provided tutorial.
You see, it’s so simple steps in the tutorial so I can make sure I exactly follow every steps.
Can any one kindly give me some hint?
I appreciate any help!