Skip to content

ClientID is not allowed in scopes. #4652

@yuezk

Description

@yuezk

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.

image

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions