Unexpected error when handling authentication request to identity provider.