SocialiteProviders / Providers

A Collection of Providers for Laravel Socialite
https://socialiteproviders.com
MIT License
506 stars 445 forks source link

Azure AD B2C mapping fails after upgrade from 4.1.1 to 4.3.0 #1194

Open shineability opened 7 months ago

shineability commented 7 months ago

Apparently the mapUserToObject method has changed and added some extra mappings in 4.3.0.

In one of our projects, the claims coming from a client's AD B2C account - to which we don't have access - don't contain a name or emails claim and thus existing code breaks.

Is the solution to update the package providing (empty) defaults for the extra mappings or would you argue that the claims SHOULD always be present in the payload?

Related issue #1165

atymic commented 7 months ago

Feel free to PR, or attach a sample response to this ticket so we can look.