Hi,
We are using the B2C OIDC. The B2C login needs to pass the Client ID to return the access token, which is not allowed explicitly in this library.
From the picture, I understand that we can pass the Client ID as the scope when using B2C OIDC.
|
private void ValidateScopeInput(ISet<string> scopesToValidate) |
|
{ |
|
if (scopesToValidate.Contains(AuthenticationRequestParameters.AppConfig.ClientId)) |
|
{ |
|
throw new ArgumentException("API does not accept client id as a user-provided scope"); |
|
} |
|
} |
The same library for Python has been fixed in AzureAD/microsoft-authentication-library-for-python#530
Related issues: #2372
Hi,
We are using the B2C OIDC. The B2C login needs to pass the Client ID to return the access token, which is not allowed explicitly in this library.
From the picture, I understand that we can pass the Client ID as the scope when using B2C OIDC.
microsoft-authentication-library-for-dotnet/src/client/Microsoft.Identity.Client/Internal/Requests/RequestBase.cs
Lines 68 to 74 in a98bcf7
The same library for Python has been fixed in AzureAD/microsoft-authentication-library-for-python#530
Related issues: #2372