Hi,
I have managed to successfully add a custom domain for my tenant. I have also configured Lock like so:
var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
configurationBaseUrl: 'https://cdn.eu.auth0.com',
...
I am using the PHP SDK to call the authentication so passing my custom domain from there. When I input my username and password, I get the following error:
WE’RE SORRY, SOMETHING WENT WRONG WHEN ATTEMPTING TO LOG IN.
And in the console:
https://mycustomdomain/usernamepassword/login 404 (Not Found)
Any ideas as to where I might be doing things wrong?
1 Like
I had the same problem just now. I found your post here, and I was pretty disappointed that no one has replied to it in 15 days.
I ended up coming across this link which solved my problem. I was apparently missing the “overrides” parameters. I hope this helps you as well.
var lock = new Auth0Lock(config.clientID, config.auth0Domain, {
configurationBaseUrl: 'https://cdn.auth0.com',
overrides: {
__tenant: config.auth0Tenant,
__token_issuer: 'YOUR_CUSTOM_DOMAIN'
},
...
1 Like
Additional information: The configuration in section “overrides” should be configured at your custom hosted page.
1 Like