Azure-Samples / active-directory-b2c-advanced-policies

Sample for use with Azure AD B2C with Custom Policies.
http://aka.ms/aadb2ccustom
MIT License
217 stars 143 forks source link

Azure AD B2C witn LinkedIn UserFlow does not work #95

Open csomgergely opened 1 year ago

csomgergely commented 1 year ago

When I configure a linkedin based userflow, I got the following error message: AADB2C90273: An invalid response was received : 'Error: unauthorized_scope_error,Error Description: Scope "r_emailaddress" is not authorized for your application'

I think the problem is, that linkedin expose for sign-in different properties, which does not include r_emailaddress:

image

Sign-in experience is approved from linkein side:

image

On stackoverflow around 2020, I found some screenshots, that the property was called r_emailaddress, but is not up-to-date any more.

image

On Azure AD B2C, I was triing to use the normal UserFlow functionality documentet here (UserFlow, not Custom Policy, which seems way more complex): https://learn.microsoft.com/en-us/azure/active-directory-b2c/identity-provider-linkedin?WT.mc_id=Portal-Microsoft_AAD_B2CAdmin&pivots=b2c-user-flow

image