Back to Practical Aspnetcore

Authentication (5)

projects/authentication/readme.md

latest1.0 KB
Original Source

Authentication (5)

  • Authentication - JWT

    This sample shows the usage of the simplified authentication and authorization via builder.AddAuthentication().AddJwtBearer();.

  • Authentication - Cookie

    This sample shows the usage of the simplified authentication and authorization via builder.AddAuthentication().AddCookie();.

  • Authentication - Mixed

    This sample shows how to use both JWT and Cookie authentications in the same application.

  • Authentication - simplified JWT bearer token authentication

    This sample shows the usage of the simplified authentication and authorization using webapi template via builder.AddAuthentication().AddJwtBearer();. Uses .NET 10 built-in OpenAPI.

  • Authentication - Identity

    This sample shows the usage of authentication using Identity API using webapi template via builder.ServicesAddIdentityApiEndpoints<>().AddEntityFrameworkStores<>();. Uses .NET 10 built-in OpenAPI.

dotnet8