Security icon indicating copy to clipboard operation
Security copied to clipboard

IServiceCollection does not contain definition for 'AddJwtBearerAuthentication'

Open elmojo opened this issue 9 years ago • 2 comments

I have the Microsoft.AspNetCore.Authentication.JwtBearer nuGet packaged added to my project. I have "using Microsoft.AspNetCore.Authentication.JwtBearer;" within my file. The compiler still cannot find the IServiceCollection extension method "AddJwtBearerAuthentication". I cannot find it within the Object Browser either. Am I missing something or doing something wrong?

elmojo avatar Aug 16 '17 06:08 elmojo

See https://docs.microsoft.com/en-us/aspnet/core/migration/1x-to-2x/identity-2x

davidfowl avatar Aug 16 '17 06:08 davidfowl

Thanks, I read up on it. I guess there are a lot of old samples out there.

elmojo avatar Aug 16 '17 07:08 elmojo