public AccessTokenGenerator( IAuthenticationTicketFactory <TUser> authenticationTicketFactory, ISecureDataFormat <AuthenticationTicket> secureDataFormat, IAuthenticationTokenFactory authenticationTokenFactory) { this.authenticationTicketFactory = authenticationTicketFactory; this.secureDataFormat = secureDataFormat; this.authenticationTokenFactory = authenticationTokenFactory; }
public AuthenticationTokenFactory(UserManager <TUser> userManager, IAuthenticationTicketFactory <TUser> authenticationTicketFactory) { if (userManager == null) { throw new ArgumentNullException(nameof(userManager)); } if (userManager == null) { throw new ArgumentNullException(nameof(userManager)); } if (authenticationTicketFactory == null) { throw new ArgumentNullException(nameof(authenticationTicketFactory)); } this.userManager = userManager; this.authenticationTicketFactory = authenticationTicketFactory; }