hslavich / OneloginSamlBundle

OneLogin SAML Bundle for Symfony
MIT License
149 stars 94 forks source link

Username not found #204

Closed mmortier-pf closed 1 year ago

mmortier-pf commented 1 year ago

Hello guys,

I'm trying to implement the library in my Symfony project (v 2.8) but I'm facing an issue.

It seems like the property username is not mapped.

Capture d’écran 2023-01-29 à 12 09 53 Capture d’écran 2023-01-29 à 12 10 16

I tried to inject the attributes but it doesn't work. If I log the attributes parameter, I receive the right data.

public function setSamlAttributes(array $attributes)
    {
        $this->email = $attributes['Email'][0];
        $this->username = $attributes['Firstname'][0];
    }

If you need, here is more informations:

Capture d’écran 2023-01-29 à 12 17 02