Nitin Badole
Nitin Badole

Reputation: 505

ASP.NET Web API 2 authentication for Windows Service

I have developed an API using ASP.NET Web API 2 to be consumed by applications in my domain. I want to secure the access to the API endpoints. I've decided to use the OAuth token based token authentication for mobile app clients and web app clients.

However there are some non-interactive windows service clients that need to consume the API. I do not want to store login credentials to get a token in the service config, however a Windows authentication suits this type of client.

Is it possible to use a hybrid - windows and token-based authentication in ASP.NET WebApi? How?

Upvotes: 0

Views: 979

Answers (2)

Nitin Badole
Nitin Badole

Reputation: 505

I have decided to break up the API into two. One for normal OAuth based access and the other with specific resources using Windows authentication to be consumed by non-interactive windows service clients.

Upvotes: 0

iBoonZ
iBoonZ

Reputation: 1035

I think the Windows authentication service from Identityserver might be a good solution for your problem

You can find more information on : WindowsAuthentication repo

Upvotes: 1

Related Questions