I want to add OAuth authorization for my RESTful web API, which build on ASP.NET Web API. Preferably to be able to use [Authorize] attribute. Could you give me examples of creating own service provider or using some library?
FWIW, this is planned for the next drop (which will be a release candidate). So if you can wait until then, you'll get this out of the box with demos/samples.
http://aspnetwebstack.codeplex.com/wikipage?title=Roadmap
Since the code is open source, I'd suggest following the codeplex project to see how it progresses. This way you can leverage what gets built as it happens without having to wait for the official RC.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With