OIDC Connection Logins Fail with "Plan executor error during findAndModify caused by cannot index parallel arrays"

Overview

When attempting to log in with an OIDC enterprise connection, an error message is returned to the callback:

Plan executor error during findAndModify :: caused by :: cannot index parallel arrays [identities] [email

Applies To

  • OIDC connections

Cause

This error will occur if the external identity provider is sending the “email” claim on the user profile as an array to Auth0. This is a standard claim that needs to be sent by the identity provider as a string.

OIDC specification: 5.1. Standard Claims

Solution

Work with the external identity provider to change the email claim data type to a string.