Join the Stack Overflow Community
Stack Overflow is a community of 6.8 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

I want to secure an ASP.NET Web API project with HMAC auth.

This REST API project will be used by third-party developers to access my application's data.

I'm trying to adapt this post in .NET Core without success...

Some of the class / interface used don't exist anymore (ex: IAuthenticationFilter, HttpAuthenticationContext, HttpAuthenticationContext, IHttpActionResult)

How can I add a sample HmacAuthentication attribute to my API methods in order to protect them with HMACSHA256 ?

Thanks for your answers!

share|improve this question
    
I tried to convert owin middleware to aspnet core. See github source github.com/ademcaglin/Security.HmacAuthentication – adem caglin Oct 12 '16 at 11:15
    
Sorry for the late answer.. I was busy on another project. I have issues to make your solution working. How can I include it in my Web-API project? I have add the 5 classes and the mapping in Startup.cs, but.. the code does not seem to be executed – Xavierh95 Nov 10 '16 at 7:20
    
There are examples in the repo. github.com/ademcaglin/Security.HmacAuthentication/blob/maste‌​r/… – adem caglin Nov 10 '16 at 9:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.