[OpenID Connect] Unable to create a user when email claim is null

Affected version : 6.0.0.RELEASE

Steps to reproduce

Difficult to reproduce with common IDPs, this issue occurred for a user using a custom-made IDP not entirely matching OIDC specifications.

  1. Have an IDP that provides a token with an "email" claim whose value is null

Expected result

A user is created and logged in.

Observed behaviour

An NPE occurs and error page appears.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information