Migrating Owin Authentication Handler To Core

Migrates a custom Katana/OWIN authentication handler to an ASP.NET Core authentication scheme. Use when an application defines its own scheme by deriving from the OWIN AuthenticationHandler base class in Microsoft.Owin.Security.Infrastructure — usually with its own AuthenticationMiddleware subclass and IAppBuilder extension, but however it is registered — and the equivalent ASP.NET Core handler must be registered with AddScheme. Covers AuthenticateCoreAsync, ApplyResponseChallengeAsync, ApplyResponseGrantAsync, InvokeAsync, custom AuthenticationType values, AuthenticationMode Active versus Passive, and per-scheme options binding. Triggers for "custom OWIN authentication handler", "custom authentication middleware", "custom authentication scheme", "port AuthenticateCoreAsync", or "AuthenticationMiddleware subclass". Not for stock OWIN cookie, OAuth bearer, or OpenID Connect middleware, which have their own migration paths.

Microsoft 0cfd830 3 files · 44.3 KB Updated 2.7k repo stars

File contents

microsoft/upgrade-agent-plugins/tree/main/plugins/upgrade-agent/upgrade/dotnet/skills/lazy/libraries/migrating-owin-authentication-handler-to-core commit 0cfd830e1c

Frequently asked questions

npx skillmds@latest add microsoft/migrating-owin-authentication-handler-to-core