HangfireIO / Hangfire

An easy way to perform background job processing in .NET and .NET Core applications. No Windows Service or separate process required
https://www.hangfire.io
Other
9.4k stars 1.7k forks source link

Configuring dashboard + authorize filter and Owin in different Web APIs #407

Open brunocs-cit opened 9 years ago

brunocs-cit commented 9 years ago

I have my Owin implementation in a Web API and Hangfire server in another. In this scenario, how should I implement the filter authorization?

odinserj commented 9 years ago

Hi @brunocs-cit, your question is very abstract. Please, provide more details: what authentication are you using in a web api, does Hangfire server resides in the same web application or another.

brunocs-cit commented 9 years ago

Hi @odinserj ,

My project consists in a single page application with token based authentication. So in IIS I have some APIs and in each of them I would like to have a specific Hangfire Server.

My Owin Middleware is implemented in integrated pipeline mode and published in a specific WebAPI on IIS. Clients performs authentication in this API and consume data from many others APIs.

My question is how should I configure my APIs to identify if users are authenticated or not. Is there a way to get this information from my Auth API?

Thanks!