Exemplo n.º 1
0
        public static IAppBuilder UseClaimsTransformation(this IAppBuilder app, ClaimsTransformer claimsTransformer)
        {
            Type type = typeof(ClaimsTransformationMiddleware);

            object[] objArray = new object[] { claimsTransformer };
            app.Use(type, objArray);
            return(app);
        }
Exemplo n.º 2
0
 public ClaimsTransformationMiddleware(OwinMiddleware next, ClaimsTransformer claimsTransformer)
     : base(next)
 {
     if (claimsTransformer == null)
     {
         throw new ArgumentNullException("claimsTransformer");
     }
     this._claimsTransformer = claimsTransformer;
 }