You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// In ConfigureServices
services.AddOpenIdConnectionAuthentication(o =>
{
o.ClientId = Configuration["oidc:clientid"];
o.ClientSecret = Configuration["oidc:clientsecret"]);
}
// In Configure
app.UseAuthentication();
Automatic authentication/challenge have been replaced:
Previously there would be undefinied behavior when multiple auth middleware turned automatic on, we centralized the setting to be in AuthenticationOptions.Default[Authenticate|Challenge|SignIn]Scheme. Also if there's only a single auth scheme, it is considered the default.
Authentication has undergone some major changes for 2.0:
Auth middleware are now all services (and configured via options)
And there is now only a single authentication middleware is needed.
Old:
New:
Automatic authentication/challenge have been replaced:
Previously there would be undefinied behavior when multiple auth middleware turned automatic on, we centralized the setting to be in
AuthenticationOptions.Default[Authenticate|Challenge|SignIn]Scheme
. Also if there's only a single auth scheme, it is considered the default.Old:
New:
HttpContext.Authentication will be obsolete
Old:
New:
AuthenticationHandler base classes have changed significantly as well
For more details: see https://github.com/aspnet/Security/pull/1170/files
Main Tracking issue: aspnet/Security#1179
The text was updated successfully, but these errors were encountered: