Ejemplo n.º 1
0
 private static void UpdateContext(HttpRequestMessage request, AuthenticationService authenticationService)
 {
     if (request.Properties.ContainsKey("User"))
         authenticationService.User = request.Properties["User"] as User;
 }
Ejemplo n.º 2
0
 public TokenValidationHandler(AuthenticationService authenticationService)
 {
     _authenticationService = authenticationService;
 }
Ejemplo n.º 3
0
 private static void SaveContext(HttpRequestMessage request, AuthenticationService authenticationService)
 {
     request.Properties.Add("User", authenticationService.User);
 }
Ejemplo n.º 4
0
 public AccessController(AuthenticationService autenticacaoService)
 {
     _autenticacaoService = autenticacaoService;
 }