Err_ssl_protocol_error

I’m trying to integrate auth0 in my application, downloaded the sample which runs just fine. My problem is, I don’t want the users to view my homepage without logging in so I did put an authorize attribute in my method so that only authenticated users can view my home page. When the user visits my page and they aren’t authorize, the login screen shows up but I shows an error after they are trying to login. It shows ERR_SSL_PROTOCOL_ERROR . How do i get this working?