public static IAppBuilder UseExtendCookieAuthentication <TManager, TUser>(this IAppBuilder app, ExtendAuthenticationOptions <TUser> options) where TManager : UserManager <TUser, long> where TUser : class, IUser <long>, Core.Security.IUser <long> { return(app.UseExtendCookieAuthentication <TManager, TUser>(options, PipelineStage.Authenticate)); }
public UserSignInContext(IOwinContext context, ExtendAuthenticationOptions <TUser> options, string authenticationType, TUser user) : base(context, options, authenticationType, user) { }
public static IAppBuilder UseExtendCookieAuthentication <TManager, TUser>(this IAppBuilder app, ExtendAuthenticationOptions <TUser> options, PipelineStage stage) where TManager : UserManager <TUser, long> where TUser : class, IUser <long>, Core.Security.IUser <long> { if (app == null) { throw new ArgumentNullException("app"); } app.Use(typeof(ExtendAuthenticationMiddleware <TManager, TUser>), app, options); app.UseStageMarker(stage); return(app); }
public ExtendAuthenticationMiddleware( OwinMiddleware next, IAppBuilder app, ExtendAuthenticationOptions <TUser> options) : base(next, options) { if (Options.TicketDataFormat == null) { var dataProtector = app.CreateDataProtector( typeof(CookieAuthenticationMiddleware).FullName, Options.AuthenticationType, "v1"); Options.TicketDataFormat = new TicketDataFormat(dataProtector); } if (Options.CookieManager == null) { Options.CookieManager = new ChunkingCookieManager(); } }
public UserSignOutContext(IOwinContext context, ExtendAuthenticationOptions <TUser, long> options, TUser user ) : base(context, options, user) { }