Search⌘ K

Trigger Authentication

Explore how to trigger authentication in a Java servlet application integrated with Auth0. Learn to configure the AuthenticationController, implement login redirection, and handle callback responses securely to manage user sessions effectively.

Authentication controller

To enable users to authenticate themselves, create an instance of AuthenticationController using the domain, clientId, and clientSecret. The AuthenticationController is provided by the auth0-java-mvc-commons SDK. The code below shows how to configure the controller for use with tokens (i.e., domain, clientId, and clientSecret) signed using the RS256 asymmetric signing algorithm. This is done by specifying a JwkProvider (JSON Web Key Provider) to fetch the public key ...