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