Security and Identity - Authentication - Overview

In this article

builder.Services.AddAuthentication(JwtBearerDefaults.AuthenticationScheme)
    .AddJwtBearer(JwtBearerDefaults.AuthenticationScheme,
        options => builder.Configuration.Bind("JwtSettings", options))
    .AddCookie(CookieAuthenticationDefaults.AuthenticationScheme,
        options => builder.Configuration.Bind("CookieSettings", options));

Authentication concepts

DefaultScheme

Authentication scheme

Authentication handler

RemoteAuthenticationHandler<TOptions> vs AuthenticationHandler<TOptions>

Authenticate

Challenge

Forbid

Authentication providers per tenant

Additional resources

Ref: Overview of ASP.NET Core authentication