derricksmith/phpsaml

PHPSAML Not Getting First Name from Azure AD

Opened this issue · 1 comments

"firstname" => SELF::$userdata['http://schemas.xmlsoap.org/ws/2005/05/identity/claims/firstname'][0],

As you can see here on this line, it says http://schemas.xmlsoap.org/ws/2005/05/identity/claims/firstname. This is not grabbing the correct variable from Azure. According to the Microsoft documentation (see here) The correct phrase is actually now givenname. I have updated this on my GLPI instance, and it does in fact fix it when you replace http://schemas.xmlsoap.org/ws/2005/05/identity/claims/firstname with http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname.

Just thought I'd give you a heads up.

Hi gljones2001,

thanks for the heads-up!

We will dive into this.