Exemple #1
0
        protected override void ApplyResponseChallenge()
        {
            if (Response.StatusCode != 401)
            {
                return;
            }

            if (ChallengeContext != null)
            {
                OAuthChallengeContext challengeContext = new OAuthChallengeContext(Context, _challenge);
                Options.Notifications.ApplyChallenge(challengeContext);
            }
        }
Exemple #2
0
 /// <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));
 }