I am trying to protect my MVC4 Web Api. In fact, I really need an identity provider with some easy protection. My service is similar to twitter, from a security point of view, there is not much private data, but the service really needs to know the user ID for the caller.
It is also important to know that the web service will only be used by mobile devices right now, although the website may accompany it in the future.
someone and the Internet led me to Thinktecture.IdentityModel, but the person seems complicated and I can find exactly zero documentation or samples. I have not had a pleasant claim-based authentication experience yet. I donβt have a request server, token provider or anything like that, and it seems to you that you will need to use this method. It all seems hard for my situation.
I also read about people implementing their own HMAC solution (https://github.com/cuongle/WebAPI.Hmac) or using OAuth (https://github.com/maksymilian-majer/DevDefined.OAuth) but they also seem a bit complicated (I read that OAuth without a helper class is enough to make the best developers cry, and I'm not the best). Janrain looks like it might work, but it looks like you have to pay for more than 2500 authenticated users per year ...
What is the best way to implement a simple identity and security provider for Web Api?
Thanks!
source share