DEV Community

loading...

Discussion on: Secure ASP.NET Blazor WASM apps and APIs with Azure AD B2C

Collapse
nhwilly profile image
nhwilly • Edited

Very cool stuff. Thank you for doing this. I am having a problem setting up the API as it is complaining about

services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
    .AddMicrosoftWebApi(options =>
 {
Enter fullscreen mode Exit fullscreen mode

It can't find the AddMicrosoftWebApi method. I can't find any reference to it, either. Is there a new approach? I checked the github code and it hasn't changed.

I'm using: Assembly Microsoft.AspNetCore.Authentication, Version=5.0.0.0

Thanks in advance.

Edit: I loaded the old code and it's there, so it must have disappeared in a subsequent release.

Collapse
nhwilly profile image
nhwilly

I think I found it, but I don't know why it wasn't showing up earlier. I know I looked.

It's called AddMicrosoftIdentityWebApi now.