Quantcast
Channel: Developer to developer
Viewing all articles
Browse latest Browse all 9076

IOwinContext in Scheduled Job

$
0
0

Hi guys,

I have a job that needs to get a user by username for our front end authentication which is using AspNet Identity. The job itself is running without HttpContext and therefore HttpContext.Current.GetOwinContext() to get the OwinContext are failing. I've seen people showing examples of custom middleware for Web API but that's obviously a sightly different context.

Does anyone have any ideas or working code on getting this working without a HttpContext?


Viewing all articles
Browse latest Browse all 9076

Trending Articles