public AccountsController(
     IAuthenticationAppService authAppService,
     IMapper mapper)
 {
     _authAppService = authAppService;
     _mapper         = mapper;
 }
 public AuthenticationController(IAuthenticationAppService authenticationAppService, IConfiguration configuration)
 {
     _authenticationAppService = authenticationAppService;
     _smsManager   = new SMSManager(configuration);
     _tokenManager = new TokenManager(configuration);
     _resources    = LocalizationFactory.CreateLocalResources();
 }
 public AccountController(ILoggerFactory loggerFactory, IAuthenticationAppService authenticacion, IAuthorizationAppService authorization, IUserAppService userAppService)
 {
     this.logger         = loggerFactory.CreateLogger <AccountController>();
     this.authenticacion = authenticacion;
     this.authorization  = authorization;
     this.userAppService = userAppService;
 }
Exemple #4
0
        public AuthenticationController(IConfiguration configuration, IAuthenticationAppService authenticationAppService,
                                        ILogger <AuthenticationController> logger)
        {
            _configuration = configuration;

            _authenticationAppService = authenticationAppService;

            _logger = logger;
        }
Exemple #5
0
 public AccountController(
     IAuthenticationAppService authenticationAppService,
     IOptions <JwtTokenConfiguration> jwtTokenConfiguration,
     IConfiguration configuration,
     IEmailSender emailSender)
 {
     _authenticationAppService = authenticationAppService;
     _configuration            = configuration;
     _emailSender           = emailSender;
     _jwtTokenConfiguration = jwtTokenConfiguration.Value;
 }
Exemple #6
0
        private static void ManageSecurityToken(IAuthenticationAppService authenticationAppService,
                                                HttpResponseMessage response, string authToken)
        {
            if (string.IsNullOrWhiteSpace(authToken))
            {
                try
                {
                    authToken = response.Headers.GetValues(authenticationAppService.TokenName)?.FirstOrDefault();
                }
                catch { }
            }

            if (!string.IsNullOrWhiteSpace(authToken))
            {
                authToken = authenticationAppService.CreateToken();
                if (!string.IsNullOrWhiteSpace(authToken))
                {
                    response.SetCookie(authenticationAppService.TokenName,
                                       authToken, authenticationAppService.Expires);
                }
            }
        }
 public AuthenticationController(IAuthenticationAppService authenticationAppService,
                                 IConfiguration configuration)
 {
     _authenticationAppService = authenticationAppService;
     _tokenManager             = new TokenManager(configuration);
 }
 public AuthenticationController(IAuthenticationAppService authenticacaoAppService)
 {
     _authenticationAppService = authenticacaoAppService;
 }
 public AuthenticationController(IAuthenticationAppService authenticationAppService) : base(null)
 {
     _authenticationAppService = authenticationAppService;
 }
Exemple #10
0
 public AccountsSyncController(IAuthenticationAppService authAppService)
 {
     _authAppService = authAppService;
 }
Exemple #11
0
 private static void SaveContext(HttpRequestMessage request,
                                 IAuthenticationAppService authenticationAppService) =>
 request.Properties.Add("User", authenticationAppService.User);
Exemple #12
0
 public TokenValidatorHandler(IAuthenticationAppService authenticationAppService)
 {
     _authenticationAppService = authenticationAppService;
 }
 public AuthenticationController(ILogger <TokenAuthentication> logger, IConfiguration configuration, IAuthenticationAppService authenticationAppService) : base(logger)
 {
     this._configuration            = configuration;
     this._authenticationAppService = authenticationAppService;
 }
Exemple #14
0
 public AuthenticationController(INotificationHandler <DomainNotification> notifications, IAuthenticationAppService authenticationAppService, IConfiguration configuration)
     : base(notifications)
 {
     _authenticationAppService = authenticationAppService;
     _configuration            = configuration;
 }