Unravel provides AddIdentity()
extension methods on IServiceCollection
. The resulting IdentityBuilder
provides methods and an extension point to configure Microsoft.AspNet.Identity services:
SetPerOwinContext<T>()
replacesCreatePerOwinContext()
AddUserManager<T>()
,AddRoleManager<T>()
,AddSignInManager<T>()
- Calls
SetPerOwinContext<T>()
- Extension method overloads align with
CreatePerOwinContext()
signatures
- Calls
Microsoft.Owin.Security.DataProtection.IDataProtectionProvider
is registered automatically fromIAppBuilder.GetDataProtectionProvider()