Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public static IAppBuilder UseSsoCookieAuthentication(this IAppBuilder app, SsoAuthenticationOptions options)
 {
     return(app.UseSsoCookieAuthentication(options, PipelineStage.Authenticate));
 }