Beispiel #1
0
 Task IAuthenticationFilter.ChallengeAsync(HttpAuthenticationChallengeContext context, CancellationToken cancellationToken)
 {
     return(Task.FromResult(0));
 }
Beispiel #2
0
 public Task ChallengeAsync(HttpAuthenticationChallengeContext context, CancellationToken cancellationToken)
 {
     Challenge(context);
     return(Task.FromResult(0));
 }
 public Task ChallengeAsync(HttpAuthenticationChallengeContext context, CancellationToken cancellationToken)
 {
     context.Result = new ResultWithChallenge(context.Result, realm);
     return(Task.FromResult(0));
 }
 public static void ChallengeWith(this HttpAuthenticationChallengeContext context, string scheme)
 {
     ChallengeWith(context, new AuthenticationHeaderValue(scheme));
 }
 public async Task ChallengeAsync(HttpAuthenticationChallengeContext context, CancellationToken cancellationToken)
 {
     // when you send back the error
     //throw new NotImplementedException();
 }