public static IAppBuilder UseSsoCookieAuthentication(this IAppBuilder app, SsoAuthenticationOptions options, PipelineStage stage) { if (app == null) { throw new ArgumentNullException(nameof(app)); } app.Use <SsoAuthenticationMiddleware>(options); app.UseStageMarker(stage); return(app); }
public static IAppBuilder UseSsoCookieAuthentication(this IAppBuilder app, SsoAuthenticationOptions options) { return(app.UseSsoCookieAuthentication(options, PipelineStage.Authenticate)); }