protected override void ApplyResponseChallenge() { if (Response.StatusCode != 401) { return; } if (ChallengeContext != null) { OAuthChallengeContext challengeContext = new OAuthChallengeContext(Context, _challenge); Options.Notifications.ApplyChallenge(challengeContext); } }
/// <summary> /// Handles applying the authentication challenge to the response message. /// </summary> /// <param name="context"></param> /// <returns></returns> public Task ApplyChallenge(OAuthChallengeContext context) { return(OnApplyChallenge(context)); }