private static void UpdateContext(HttpRequestMessage request, AuthenticationService authenticationService)
 {
     if (request.Properties.ContainsKey("User"))
         authenticationService.User = request.Properties["User"] as User;
 }
 public TokenValidationHandler(AuthenticationService authenticationService)
 {
     _authenticationService = authenticationService;
 }
 private static void SaveContext(HttpRequestMessage request, AuthenticationService authenticationService)
 {
     request.Properties.Add("User", authenticationService.User);
 }
예제 #4
0
 public AccessController(AuthenticationService autenticacaoService)
 {
     _autenticacaoService = autenticacaoService;
 }