Then, I configured my tenant name and client id in the web.xml, and once I launch the web app I can "log in" but, when I come back to my domain I see the error. jsp page.
After debugging, I can see that
AuthHelper.containsAuthenticationData(httpRequest) is giving false because the request parameter map does not contain the ID_TOKEN or CODE. Actually, it is empty. Below method returns false, getting all filed as false.