public void GetDescriptions(DescribeSchemesContext context)
 {
     if (PriorHandler != null)
     {
         PriorHandler.GetDescriptions(context);
     }
 }
        public override IEnumerable<AuthenticationDescription> GetAuthenticationSchemes()
        {
            var handler = HttpAuthenticationFeature.Handler;
            if (handler == null)
            {
                return new AuthenticationDescription[0];
            }

            var describeContext = new DescribeSchemesContext();
            handler.GetDescriptions(describeContext);
            return describeContext.Results.Select(description => new AuthenticationDescription(description));
        }
 public void GetDescriptions(DescribeSchemesContext context)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 4
0
        public virtual void GetDescriptions(DescribeSchemesContext describeContext)
        {
            describeContext.Accept(BaseOptions.Description.Items);

            if (PriorHandler != null)
            {
                PriorHandler.GetDescriptions(describeContext);
            }
        }
 public void GetDescriptions(DescribeSchemesContext context)
 {
 }
        public void GetDescriptions(DescribeSchemesContext context)
        {
            foreach (var description in Options.AuthenticationDescriptions)
            {
                context.Accept(description.Items);
            }

            if (PriorHandler != null)
            {
                PriorHandler.GetDescriptions(context);
            }
        }