AADB2C90010: The request does not contain a scope parameter

code-surgeon 146 Reputation points
2021-05-28T10:55:15.747+00:00

I have an azure static web app with B2C authentication setup as a custom provider as shown below.

100564-image.png

However, when I try to sign in, it returns error: AADB2C90010: The request does not contain a scope parameter.
Watching network activities, the regular OIDC/OAuth redirect dances do happen but scope is in fact missing. Shouldn't it have applied some default OIDC scopes at least? I even added openid, profile and offline_acces scopes to the provider definition. What am I missing?

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
968 questions
0 comments No comments
{count} votes

Accepted answer
  1. code-surgeon 146 Reputation points
    2021-05-28T21:54:35.553+00:00

    Turns out it is a simple typo....scopes...🤦‍♂️

    "login": {
                "nameClaimType": "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name",
                "scopes": ["openid", "profile", "offline_access"],
                "loginParameterNames": []
              }
    

    I will leave it here in case for someone like me :-)


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.