You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
729 B
C#
20 lines
729 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace AuthStudy.Authentication.Basic.Events
|
|
{
|
|
public class BasicAuthenticationEvents
|
|
{
|
|
public Func<BasicAuthenticationFailedContext, Task> OnAuthenticationFailed { get; set; } = context => Task.CompletedTask;
|
|
|
|
public Func<ValidateCredentialsContext, Task> OnValidateCredentials { get; set; } = context => Task.CompletedTask;
|
|
|
|
public virtual Task AuthenticationFailed(BasicAuthenticationFailedContext context) => OnAuthenticationFailed(context);
|
|
|
|
public virtual Task ValidateCredentials(ValidateCredentialsContext context) => OnValidateCredentials(context);
|
|
}
|
|
}
|