public virtual void Challenge(IChallengeContext context) { if (SecurityHelper.LookupChallenge(context.AuthenticationTypes, BaseOptions.AuthenticationType, BaseOptions.AuthenticationMode)) { ChallengeContext = context; context.Accept(BaseOptions.AuthenticationType, BaseOptions.Description.Dictionary); } if (PriorHandler != null) { PriorHandler.Challenge(context); } }
public virtual void Challenge(IChallengeContext context) { if (ShouldHandleScheme(context.AuthenticationSchemes)) { ChallengeContext = context; context.Accept(BaseOptions.AuthenticationScheme, BaseOptions.Description.Dictionary); } if (PriorHandler != null) { PriorHandler.Challenge(context); } }