Skip to content

aussieklutz/AspNetCore6_NativeJwtBearerAuth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AspNetCore6_NativeJwtBearerAuth

Demonstrates a basic AspNetCore 6.0 WebAPI with Bearer Auth implemented purely using the native handlers

Other examples I could find implemented this functionality by creating a custom auth handler. This uses the native JwtBearer handlers.

Also implements HS256. Other examples I could find implement RS256.

Add Package

dotnet add package Microsoft.AspNetCore.Cors
dotnet add package Microsoft.AspNetCore.Authorization
dotnet add package Microsoft.AspNetCore.Authentication
dotnet add package Microsoft.AspNetCore.Authentication.JwtBearer

Note: I am unsure why, but adding the Microsoft.IdentityModel.Tokens package breaks this. I think there are some components implemented in both with a name collision

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages