docspell icon indicating copy to clipboard operation
docspell copied to clipboard

OIDC does not use email claim for new accounts

Open madduck opened this issue 2 years ago • 0 comments

A user created in Docspell through an OIDC login does not get an email address, even though the JWT includes the email:

{
    […]
    "docspell_collective": "ACME",
    "email": "[email protected]",
    "email_verified": true,
    "name": "Martin Krafft",
    "given_name": "Martin Krafft",
    "preferred_username": "Martin.Krafft",
    "nickname": "Martin.Krafft",
    […]
}

Especially if email_verified is true, the email field should be used for the new user.

madduck avatar Sep 16 '23 21:09 madduck