示例#1
0
        public static IAppBuilder UseSaml2SLOAuthentication(this IAppBuilder app, SLOAuthenticationOptions options)
        {
            if (app == null)
            {
                throw new ArgumentNullException("app");
            }
            if (options == null)
            {
                throw new ArgumentNullException("options");
            }
            var resolver = ApplicationConfiguration.Instance.DependencyResolver;

            app.Use((object)typeof(SLOOwinMiddleware), (object)options, resolver);

            return(app);
        }
示例#2
0
        public static IAppBuilder UseSaml2SLOAuthentication(this IAppBuilder app)
        {
            var options = new SLOAuthenticationOptions();

            return(app.UseSaml2SLOAuthentication(options));
        }