We're setting up authentication against an AD instance, largely following the instructions here:
This makes use of OWIN to manage the login process. I notice in the generic OWIN guide here, however, that some things are different:
Specifically, as part of start up in the latter, there are a number of OWIN config settings that are called:
// Configure the db context, user manager and signin manager to use a single instance per request
I don't see these calls in the AD example. Are they not required for some reason, or were they simply left out of the AD example by mistake? Should I add these to my Startup class if using AD OpenId authentication or not?
Those are not in play when using Federated Security with OpenID Connect so you shouldn't have any ApplicationDbContext references in your code.