Auth0 Home Blog Docs

Https://company.eu.auth0.com/login

hosted-pages

#1

I don’t understand why my page is not working

https://“company”.eu.auth0.com/login

Oops!, something went wrong

There could be a misconfiguration in the system or a service outage. We track these errors automatically, but if the problem persists feel free to contact us.
Please try again.

TECHNICAL DETAILS

SUPPORT
Please contact the systems administrator.

invalid_request: missing client parameter

VIEW LOG TRACKING ID:


#3

:wave: @mobicycle are you setting up Auth0 for the first time? You shouldn’t be calling /login directly. If you’re using Lock 11 for Web, first step is to install Lock (any of these installation sources will be fine so choose whichever you are more comfortable using). Then configure cross-origin authentication as described here. Next, we will begin initializing Lock as described here which describes creating a Lock object like:

var lock = new Auth0Lock(
  'CLIENT_ID',
  '<TENANT-NAME>.auth0.com'
);

Then we need to listen for an authentication event by implementing the on method for Lock:

lock.on("authenticated", function(authResult) {
  // implement here what you want to happen upon authentication 
   ...
    if (error) {
      // Handle error
      return;
    }
      ... 
  });
});

Lastly, we can add a listener to the Log in button, example the button ID is btn-login:

document.getElementById('btn-login').addEventListener('click', function() {
  lock.show();
});

This will launch the Lock widget after the user clicks a login button.


#5

if I use the modal code on this page, what else will I need to add?


#8

do you know why this does not work?

<li><a onclick="lock.show();">Log in</a></li>