FIX WebApi bearer token authorization

This commit is contained in:
Lucio Maranta
2019-04-17 14:05:13 +02:00
parent 50e6cf5653
commit 15b5ba8ca0
4 changed files with 41 additions and 24 deletions
@@ -25,6 +25,7 @@ namespace Step.Database.Controllers
{
return dbCtx
.Sessions
.Include("MachineUser")
.Where(x => x.Token == token) // Find session by token
.FirstOrDefault();
}