Beispiel #1
0
 public AuthorizationService(UserManager <User> userManager,
                             IUnitOfWork unitOfWork,
                             IJWTService jwt,
                             IEmailService email,
                             IConfirmationCodeService generateConfirmationCode,
                             IPasswordService resetPasswordCode,
                             LinkGenerator linkGenerator,
                             IHttpContextAccessor httpContextAccessor,
                             IOptions <JWTSettings> jwtSettings)
 {
     this.userManager = userManager;
     this.jwt         = jwt;
     this.email       = email;
     this.generateConfirmationCode = generateConfirmationCode;
     this.linkGenerator            = linkGenerator;
     this.resetPasswordCode        = resetPasswordCode;
     this.httpContextAccessor      = httpContextAccessor;
     this.jwtSettings       = jwtSettings.Value;
     this.unitOfWork        = unitOfWork;
     this.tokenDataProvider = unitOfWork.Get <ITokenDataProvider>();
 }
        public async Task Setup()
        {
            await SetupTest();

            _tokenDataProvider = new TokenDataProvider(Options);
        }
Beispiel #3
0
 public TokenService(ITokenDataProvider tokenDataProvider)
 {
     this.tokenDataProvider = tokenDataProvider;
 }