Example #1
0
        public CurrentUserOwinHandler(AppFunc next, IAuthManagerService authManagerService)
        {
            if (next == null)
            {
                throw new ArgumentNullException("next");
            }

            _authManagerService = authManagerService;
            _next = next;
        }
Example #2
0
 public AuthController(IAuthManagerService authRepository)
 {
     _authRepository = authRepository;
 }
Example #3
0
 public UsersController(ILogger logger, IDataContext dataContext, IAuthManagerService authManagerService)
 {
     _logger             = logger;
     _dataContext        = dataContext;
     _authManagerService = authManagerService;
 }
Example #4
0
 public static void UseCustomCurrentUserHandler(this IAppBuilder app, IAuthManagerService authManagerService)
 {
     app.Use <CurrentUserOwinHandler>(authManagerService);
 }