예제 #1
0
 public UserController(ILogger <UserController> logger, SnakeCaseConverter snakeCaseConverter, IAuthFacade authFacade, GetNewTokensUseCase getNewTokesUseCase, RefreshTokensUseCase refreshTokensUseCase, IUserRepository db)
 {
     this.logger               = logger;
     this.snakeCaseConverter   = snakeCaseConverter;
     this.authFacade           = authFacade;
     this.getNewTokesUseCase   = getNewTokesUseCase;
     this.refreshTokensUseCase = refreshTokensUseCase;
     this.db = db;
 }
예제 #2
0
 public CustomerManagementController(IConfiguration config, ILogger <CustomerManagementController> logger,
                                     ICustomerRepository customerRepository, IMapper mapper, IOrderFacade orderFacade,
                                     IReviewCustomerFacade reviewFacade, IAuthFacade authFacade)
 {
     _logger             = logger;
     _customerRepository = customerRepository;
     _mapper             = mapper;
     _orderFacade        = orderFacade;
     _reviewFacade       = reviewFacade;
     _authFacade         = authFacade;
     _config             = config;
 }
예제 #3
0
 public UsuarioAppService(IUsuarioRepository repository,
                          ITokenRepository repositoryToken,
                          ITokenTypeRepository repositoryTokenType,
                          IPerfilRepository repositoryPerfil,
                          ITokenFacade facadeToken,
                          IAuthFacade facadeAuth,
                          IPasswordValidator <Usuario> validatorPassword,
                          SignInManager <Usuario> signInManager,
                          UserManager <Usuario> userManager,
                          IMapper mapper,
                          IUnitOfWork uow)
 {
     _repository          = repository;
     _repositoryToken     = repositoryToken;
     _repositoryTokenType = repositoryTokenType;
     _repositoryPerfil    = repositoryPerfil;
     _facadeToken         = facadeToken;
     _facadeAuth          = facadeAuth;
     _validatorPassword   = validatorPassword;
     _signInManager       = signInManager;
     _userManager         = userManager;
     _mapper = mapper;
     _uow    = uow;
 }
 /// <summary>Initializes a new instance of the <see cref="SimpleRefreshTokenProvider"/> class.</summary>
 /// <param name="authFacade">The auth facade.</param>
 public SimpleRefreshTokenProvider(IAuthFacade authFacade)
 {
     this.authFacade = authFacade;
 }
예제 #5
0
 public LoginController(IAuthFacade authService,
                        IAppSettings settings, IHttpContextAccessor httpContextAccessor, IHttpClientFactory clientFactory) : base(httpContextAccessor, clientFactory)
 {
     this.authService = authService;
     this.settings    = settings;
 }
예제 #6
0
 public AuthController(IAuthFacade authFacade)
 {
     _authFacade = authFacade;
 }
예제 #7
0
 static SessionHelper()
 {
     container   = UrbanRFP.SimpleInjectorConfig.container;
     authService = container.GetInstance <AuthFacade>();
 }
예제 #8
0
 public AuthController(IAuthFacade authFacade)
 {
     _authFacade = authFacade ?? throw new ArgumentNullException(nameof(authFacade));
 }
예제 #9
0
 public HasPermissionAuthorizationHandler(IAuthFacade facadeAuth)
 {
     _facadeAuth = facadeAuth;
 }
예제 #10
0
 public TokenFacade(IConfiguration configuration,
                    IAuthFacade serviceAuth)
 {
     _configuration = configuration;
     _serviceAuth   = serviceAuth;
 }
 /// <summary>Initializes a new instance of the <see cref="SimpleAuthorizationServerProvider"/> class.</summary>
 /// <param name="authFacade">The auth facade.</param>
 /// <param name="userManagement">The user management.</param>
 public SimpleAuthorizationServerProvider(IAuthFacade authFacade, IUserManagement userManagement)
 {
     this.authFacade     = authFacade;
     this.userManagement = userManagement;
 }
예제 #12
0
 public AccountController(IAuthFacade _authService, IContactFacade _contactService, IOrganizationFacade _orgService)
 {
     this.authService    = _authService ?? throw new ArgumentNullException(nameof(_authService));
     this.contactService = _contactService ?? throw new ArgumentNullException(nameof(_contactService));
     this.orgService     = _orgService ?? throw new ArgumentNullException(nameof(_orgService));
 }