question

Mitch Miller avatar image
Mitch Miller asked

Sample App Auth Error - ffdc-sample-dotnet3

I have created an application and the reply url is http://localhost/signin-oidc ( I have also tried inserting the port 5000 in this as that's what it runs on locally)

I have configured to use jwt and am running the test B2C button. I get back the following error which I am unable to find the cause.

 Microsoft.AspNetCore.Authentication.OpenIdConnect.OpenIdConnectHandler[12]
Message contains error: 'invalid_request', error_description: 'Invalid scopes: openid profile', error_uri: 'error_uri is null'.
accounts b2c
10 |600 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Mitch Miller avatar image
Mitch Miller answered

I was able to get past this error by modifying the oidc options to include this.

o.Scope.Remove("profile");
10 |600 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.