public AuthController(ApplicationDbContext context, UserManager <AppUser> userManager, RoleManager <AppRole> roleManager, SignInManager <AppUser> signInManager, IAuthenticationServices authenticationServices) { _context = context; _userManager = userManager; _signInManager = signInManager; _roleManager = roleManager; _authenticationServices = authenticationServices; }
public AuthenticationController(UserManager <User> userManager, RoleManager <IdentityRole> roleManager, MainDbContext appDb, IAuthenticationServices authServices, IConfiguration configuration, IEmailSender emailSender, IAccountServices accountServices) { this.userManager = userManager; this.roleManager = roleManager; this.appDb = appDb; this.authServices = authServices; _configuration = configuration; this.emailSender = emailSender; this.accountServices = accountServices; }
public IActionResult GetUser(Authentication authentication, [FromServices] IAuthenticationServices _authService) { try { var user = _authService.GetUser(authentication); return(Ok(user)); } catch (Exception) { return(BadRequest()); } }
public UsersController(ApplicationDbContext context, UserManager <AppUser> userManager, RoleManager <AppRole> roleManager, SignInManager <AppUser> signInManager, IAuthenticationServices authenticationServices , IOptions <ConfigurationParams> config, IOptions <TemplateParams> templateParams, IHostingEnvironment hostingEnvironment, IExtendedEmailSender emailSender) { _context = context; _userManager = userManager; _signInManager = signInManager; _authenticationServices = authenticationServices; _config = config; _templateParams = templateParams; _hostingEnvironment = hostingEnvironment; _emailSender = emailSender; _roleManager = roleManager; }
public LoginViewModel(INavigationService _iNavigationService, IConnectivityServices _connectivityServices, IAuthenticationServices _authenticationServices, IUserDialogsServices _userDialogsServices, IStorageServices _storageServices ) { this._iNavigationService = _iNavigationService; this._iConnectivityServices = _connectivityServices; this._iAuthenticationServices = _authenticationServices; this._iUserDialogsServices = _userDialogsServices; this._iStorageServices = _storageServices; CanSubmit = false; IsAccessing = false; AccessCommand = new Command(Access); CheckIsLoggedCommand = new Command(CheckIsLogged); }
public IActionResult SetUser(Authentication authentication, [FromServices] IAuthenticationServices _authServices) { var user = _authServices.SetUser(authentication); return(Ok(user)); }
public MainWindowViewModel(IAuthenticationServices authenticationServices, IEmulationSmartDetectorRunner smartDetectorRunner, NotificationService notificationService) { this.AuthenticationServices = authenticationServices; this.SmartDetectorRunner = smartDetectorRunner; notificationService.TabSwitchedToAlertsControl += () => { this.SelectedTab = MainWindowTabItem.AlertsControl; }; }
public LoginController(IConfiguration config, IAuthenticationServices authenticationServices) { _config = config; _authenticationServices = authenticationServices; }
public ResultRoleDto GetApplicationUserRoleMenu(string ticket, long idCompany, long idApplication, long idUserApplication, long idApplicationRole) { IAuthenticationServices authenticationService = (IAuthenticationServices)this.ContextSpring.GetObject(typeof(AuthenticationServices).Name); return(authenticationService.GetApplicationUserRoleMenu(ticket, idCompany, idApplication, idUserApplication, idApplicationRole)); }
public AuthenticationController(IAuthenticationServices authenticationServices) { _authenticationServices = authenticationServices; }
public AccountController(IBuildingSecuritySessionStore sessionStore, IAuthenticationServices authenticationServices) { _sessionStore = sessionStore; _authenticationServices = authenticationServices; }
public AllowResourcesDto GetAllowResources(string userName, string password, long idCompany, long idApplication, string ticket) { IAuthenticationServices authenticationService = (IAuthenticationServices)this.ContextSpring.GetObject(typeof(AuthenticationServices).Name); return(authenticationService.GetAllowResources(userName, password, idCompany, idApplication, ticket)); }
public AccountController GetAccountController(IBuildingSecuritySessionStore sessionStore = null, IAuthenticationServices authenticationServices = null) { return new AccountController(sessionStore ?? _sessionStore, authenticationServices ?? new Mock<IAuthenticationServices>().Object); }
public LoginController(IAuthenticationServices authenticationServices) { this.authenticationServices = authenticationServices; }
public DateTimeOwinMiddleware(OwinMiddleware next, IAuthenticationServices authenticationServices) : base(next) { _authenticationServices = authenticationServices; }
public List <string> GetSharedSecret(string textPlain) { IAuthenticationServices authenticationService = (IAuthenticationServices)this.ContextSpring.GetObject(typeof(AuthenticationServices).Name); return(authenticationService.GetSharedSecret(textPlain)); }
public AccountController(IBaseRepository <User> user, IAuthenticationServices authenticationServices) { _user = user; _authenticationServices = authenticationServices; }
/// <summary> /// Initializes a new instance of <see cref="AccountController"/>. /// </summary> /// <param name="configuration">An implementation of <see cref="IConfiguration"/>.</param> /// <param name="authenticationServices">An implementation of <see cref="IAuthenticationServices"/>.</param> public AccountController(IConfiguration configuration, IAuthenticationServices authenticationServices) { _configuration = configuration; _authenticationServices = authenticationServices; }
public ResultDto SaveChangePassword(ChangePasswordDto dtoChangePassword) { IAuthenticationServices authenticationService = (IAuthenticationServices)this.ContextSpring.GetObject(typeof(AuthenticationServices).Name); return(authenticationService.AuthenticationChangePassword(dtoChangePassword)); }
public AuthenticatieRepository(IAuthenticationServices authenticationServices) { _authenticationServices = authenticationServices; }
public SettingController(IConfigParamServices iConfigParamServices) { _iConfigParamServices = iConfigParamServices; _iAuthenticationServices = ((ConfigParamServices)_iConfigParamServices)._iAuthenticationServices; }
/// <summary> /// Initializes a new instance of the <see cref="ActiveDirectoryCredentials"/> class. /// </summary> /// <param name="authenticationServices">The authentication services</param> /// <param name="resource">The resource for which to create the credentials</param> public ActiveDirectoryCredentials(IAuthenticationServices authenticationServices, string resource) { this.authenticationServices = authenticationServices; this.resource = resource; }
/// <summary> /// Initializes a new instance of the <see cref="ActiveDirectoryCredentialsFactory"/> class. /// </summary> /// <param name="authenticationServices">The authentication services</param> public ActiveDirectoryCredentialsFactory(IAuthenticationServices authenticationServices) { this.authenticationServices = authenticationServices; }
public ResultUserAuthenticationDto GetAuthentication([Required] string userName, [Required] string password) { IAuthenticationServices authenticationService = (IAuthenticationServices)this.ContextSpring.GetObject(typeof(AuthenticationServices).Name); return(authenticationService.GetAuthentication(userName, password)); }