예제 #1
0
 public AccountService(SignInManager <ApplicationUser> signInManager, UserManager <ApplicationUser> userManager, IJwtAuthService jwtAuthService, ILogger <AccountService> logger)
 {
     _signInManager  = signInManager;
     _userManager    = userManager;
     _jwtAuthService = jwtAuthService;
     _logger         = logger;
 }
 public SimpleAuthorizationController(ILogger <SimpleAuthorizationController> logger, IUserService userService, IJwtAuthService jwtAuthManager, IUserRepository userRepository)
 {
     _logger         = logger;
     _userService    = userService;
     _jwtAuthManager = jwtAuthManager;
     _userRepository = userRepository;
 }
예제 #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="jwtAuthService"></param>
 /// <param name="sysRoleService"></param>
 /// <param name="accessor"></param>
 public JwtAuthController(IJwtAuthService jwtAuthService, ISysRoleService sysRoleService,
                          IHttpContextAccessor accessor)
 {
     _jwtAuthService = jwtAuthService;
     _sysRoleService = sysRoleService;
     _accessor       = accessor;
 }
예제 #4
0
 public WxService(ICacheService cacheService, IBaseService <sys_user> baseService,
                  IJwtAuthService jwtAuthService, ILogger <WxService> logger)
 {
     _cacheService   = cacheService;
     _baseService    = baseService;
     _jwtAuthService = jwtAuthService;
     _logger         = logger;
 }
        public async Task <ActionResult> Login([FromServices] IJwtAuthService authService, [FromBody] LoginModel loginModel)
        {
            var result = await authService.SignInAsync(loginModel.Email, loginModel.Password);

            if (!result.Sucess)
            {
                return(BadRequest(result.Errors));
            }

            return(Ok(result.Value));
        }
 /// <summary> Provides functionality for user management </summary>
 public UserManagerService(
     UserManager <AppUser> userManager,
     IJwtAuthService jwtAuthService,
     IMapper mapper,
     AppDataContext context
     )
 {
     _context        = context;
     _userManager    = userManager;
     _mapper         = mapper;
     _jwtAuthService = jwtAuthService;
 }
        public LoginPageViewModel(INavigationService navigationService, IPageDialogService pageDialogService,
                                  IEventAggregator eventAggregator, ILoginManager loginManager, IJwtAuthService jwtAuthService)

        {
            _navigationService = navigationService;
            _pageDialogService = pageDialogService;
            _eventAggregator   = eventAggregator;
            _loginManager      = loginManager;
            _jwtAuthService    = jwtAuthService;

            OnLoginCommand = new DelegateCommand(async() => await GoToWelcomePage());
        }
예제 #8
0
 public AccountController(ILogger <AccountController> logger, IUserService userService, IJwtAuthService jwtAuthManager, INewsRepository newsRepository, IEmployeeRepository employeeRepository, IVoteListRepository voteListRepository, DomainContext context, SystemContext systemContext, IReadCommand <ProfileResult> profileReadCommand, IVoteRepository voteRepository)
 {
     _logger             = logger;
     _userService        = userService;
     _jwtAuthManager     = jwtAuthManager;
     _employeeRepository = employeeRepository;
     _voteListRepository = voteListRepository;
     _newsRepository     = newsRepository;
     _context            = context;
     _systemContext      = systemContext;
     _voteListRepository = voteListRepository;
     _profileReadCommand = profileReadCommand;
     _voteRepository     = voteRepository;
 }
 public ProjectTypesController(IProjectTypeService projectType, IErrorHandlerService errorHandler, IJwtAuthService jwtAuth) : base(errorHandler, jwtAuth)
 {
     _projectType = projectType;
 }
예제 #10
0
 public ProjectsController(IConfigurationFileService configurationFile, IGHInvitationService gHInvitation, IGHCollaboratorService gHCollaborator, IRepositoryService repository, IProjectRepositoryService projectRepository, ICollaboratorService collaborator, IPermissionService permission, IAccountService account, IProjectService project, IErrorHandlerService errorHandler, IJwtAuthService jwtAuth) : base(errorHandler, jwtAuth)
 {
     _configurationFile = configurationFile;
     _gHInvitation      = gHInvitation;
     _gHCollaborator    = gHCollaborator;
     _repository        = repository;
     _projectRepository = projectRepository;
     _collaborator      = collaborator;
     _permission        = permission;
     _account           = account;
     _project           = project;
 }
예제 #11
0
 public AuthController(IJwtAuthService auth)
 {
     authManager = auth;
 }
예제 #12
0
 public RepositoriesController(IProjectRepositoryService projectRepository, IProjectService project, IPermissionService permission, IBranchService branch, IGHReferenceService gHReference, IGHWebhookService gHWebhook, IGHBranchService gHBranch, IGHRepositoryService gHRepository, IRepositoryService repository, IAccountService account, IErrorHandlerService errorHandler, IJwtAuthService jwtAuth) : base(errorHandler, jwtAuth)
 {
     _projectRepository = projectRepository;
     _project           = project;
     _permission        = permission;
     _branch            = branch;
     _gHReference       = gHReference;
     _gHWebhook         = gHWebhook;
     _gHBranch          = gHBranch;
     _gHRepository      = gHRepository;
     _repository        = repository;
     _account           = account;
 }
 public NococidControllerBase(IErrorHandlerService errorHandler, IJwtAuthService jwtAuth)
 {
     _errorHandler = errorHandler;
     _jwtAuth      = jwtAuth;
 }
예제 #14
0
 public CompanyService(IJwtAuthService authenticationService)
 {
     _authenticationService = authenticationService;
 }
예제 #15
0
 public ApplicationAdminFilter(IErrorHandlerService errorHandler, IJwtAuthService jwtAuth)
 {
     _errorHandler = errorHandler;
     _jwtAuth      = jwtAuth;
 }
예제 #16
0
 public AccountController(ILogger <AccountController> logger, IUserService userService, IJwtAuthService jwtAuthManager)
 {
     _logger         = logger;
     _userService    = userService;
     _jwtAuthManager = jwtAuthManager;
 }
 public JwtRefreshTokenCache(IJwtAuthService jwtAuthManager)
 {
     _jwtAuthManager = jwtAuthManager;
 }
예제 #18
0
 public AuthController(IUserService user, IJwtAuthService jwtAuth, IErrorHandlerService errorHandler)
 {
     _user         = user;
     _jwtAuth      = jwtAuth;
     _errorHandler = errorHandler;
 }
예제 #19
0
 public UserFilter(IUserService user, IErrorHandlerService errorHandler, IJwtAuthService jwtAuth)
 {
     _user         = user;
     _errorHandler = errorHandler;
     _jwtAuth      = jwtAuth;
 }
예제 #20
0
        /// <summary>
        /// AuthenticateController Construtor
        /// </summary>
        /// <param name="jwtAuthService"></param>
        /// <param name="userManger"></param>
        /// <param name="signInManager"></param>

        public AuthenticateController(IJwtAuthService jwtAuthService, MyUserManager <AppUser> myUserManger, SignInManager <AppUser> signInManager)
        {
            _jwtAuthService = jwtAuthService;
            _myUserManager  = myUserManger;
            _signInManager  = signInManager;
        }
예제 #21
0
 public TokensController(ITokenService token, IAccountService account, IPermissionService permission, IConfigurationFileService configurationFile, IProjectToolService projectTool, ICircleCIUserService circleCIUser, IHerokuAccountService herokuAccount, IHerokuAppService herokuApp, IHerokuRegionService herokuRegion, IHerokuStackService herokuStack, IErrorHandlerService errorHandler, IJwtAuthService jwtAuth) : base(errorHandler, jwtAuth)
 {
     _token             = token;
     _account           = account;
     _permission        = permission;
     _configurationFile = configurationFile;
     _projectTool       = projectTool;
     _circleCIUser      = circleCIUser;
     _herokuAccount     = herokuAccount;
     _herokuApp         = herokuApp;
     _herokuRegion      = herokuRegion;
     _herokuStack       = herokuStack;
 }
 public ListenersController(IConfigurationFileService configurationFile, IPipelineThreadService pipelineThread, IWorkflowThreadService workflowThread, ITokenService token, ICommitService commit, IErrorHandlerService errorHandler, IJwtAuthService jwtAuth) : base(errorHandler, jwtAuth)
 {
     _configurationFile = configurationFile;
     _pipelineThread    = pipelineThread;
     _workflowThread    = workflowThread;
     _token             = token;
     _commit            = commit;
 }
예제 #23
0
 public AuthController(IJwtAuthService jwtService)
 {
     this.jwtService = jwtService;
 }
 public ProductsApiController(IProductService userService, IJwtAuthService authService)
 {
     _service     = userService;
     _authService = authService;
 }
예제 #25
0
 public JwtAuthController(IJwtAuthService jwtAuthService)
 {
     _jwtAuthService = jwtAuthService;
 }
 public AccountController(ILogger <AccountController> logger, IJwtAuthService authentication)
 {
     _authentication = authentication;
     _logger         = logger;
 }
예제 #27
0
 public CommitsController(ICommitService commit, IErrorHandlerService errorHandler, IJwtAuthService jwtAuth) : base(errorHandler, jwtAuth)
 {
     _commit = commit;
 }
예제 #28
0
 public ConfigurationsController(IConfigurationService configuration, IErrorHandlerService errorHandler, IJwtAuthService jwtAuth) : base(errorHandler, jwtAuth)
 {
     _configuration = configuration;
 }
예제 #29
0
 public AccountCommandHandler(IAccountRepository accountRepository, IJwtAuthService jwtAuthService)
 {
     _accountRepository = accountRepository;
     _jwtAuthService    = jwtAuthService;
 }
 public ProjectsController(IJwtAuthService jwtAuth, IProjectService project, IErrorHandlerService errorHandler)
 {
     _jwtAuth      = jwtAuth;
     _project      = project;
     _errorHandler = errorHandler;
 }