Here is what happens if I set the nonce flag to false . The callback doesn't take me to originally requested URL, and just stops the chain . Plus there is no error logs now .

Here is the entire configuration :
// Azure B2C configuration
final OidcConfiguration b2cConfiguration = new OidcConfiguration ();
b2cConfiguration.setClientId (azureB2cClientId);
b2cConfiguration.setSecret (azureB2cClientSecret);
b2cConfiguration.setDiscoveryURI (azureB2cDiscovery);
b2cConfiguration.setUseNonce (false);
b2cConfiguration.setWithState (false);
b2cConfiguration.setScope (scope);
b2cConfiguration.setResponseMode("form_post");
// 60 secs
b2cConfiguration.setMaxClockSkew (60);
b2cConfiguration
.setClientAuthenticationMethod (ClientAuthenticationMethod.CLIENT_SECRET_POST);
b2cConfiguration.setLogoutUrl (postLogoutUrl);
// Azure B2C Client
final OidcClient b2cClient = new OidcClient (b2cConfiguration);
// Using NoParameterCallbackUrlResolver, no client_name parameter is added to callback url
// else pac4j will forcibly add one , and it will result in mismatch in redirect URL with IDP
b2cClient.setCallbackUrlResolver (new NoParameterCallbackUrlResolver ());
// This is the name which is referred in web.xml
b2cClient.setName ("azureB2cClient");
final Clients clients = new Clients (
redirectUrl,
b2cClient
);
final Config config = new Config (clients);
// Done to avoid CSRF checks
config.addAuthorizer ("mustBeAuth", new IsAuthenticatedAuthorizer ());
config.setAuthorizer (new IsAuthenticatedAuthorizer ());