Esempio n. 1
0
 /// <summary>
 /// The property <see cref="BasicAuthenticationEvents.OnValidatePrincipal"/> will be overridden.
 /// </summary>
 public static BasicAuthenticationEvents UseAuthenticateWhenValidatePrincipal <UserType>(this BasicAuthenticationEvents events)
     where UserType : class, IUserEntity
 {
     events.OnValidatePrincipal = BasicAuthenticationEventsTools.ValidatePrincipal <UserType>;
     return(events);
 }
 public BasicAuthenticationOptions()
 {
     Events = new BasicAuthenticationEvents();
 }