Add in the middle ware and Fallbackcontroller.
This commit is contained in:
@@ -25,7 +25,9 @@ namespace CarParkValidationAPI.Authorization
|
||||
if (userId != null)
|
||||
{
|
||||
// attach user to context on successful jwt validation
|
||||
context.Items["User"] = userService.GetById(userId.Value);
|
||||
//here to put in the real user
|
||||
//TODO if you want to add information for User
|
||||
// context.Items["User"] = userService.GetById(userId.Value);
|
||||
}
|
||||
|
||||
await _next(context);
|
||||
|
||||
Reference in New Issue
Block a user