Reputation: 5606
I am planning to expose an existing ASP.NET WebAPI API to mobile applications. I'd like to use OAuth2 resource owner password credentials flow via Dotnetopenauth so that users can enter their username and password into our mobile application login screen (rather than opening up a screen in a web viewer, etc.) and receive an authentication token.
As such, our setup is as follows:
I've been playing with the OAuth2ProtectedWebApi sample and while I understand what it is doing I'm not sure how to convert this to the resource owner password credentials flow.
My questions are:
Any suggestions would be greatly appreciate,
Thanks
JP
Upvotes: 0
Views: 2194
Reputation: 18482
Why do you want to use DNOA? Resource owner flow is now part of Web API v2 - and quite easy to implement.
I wrote a walkthrough here: http://leastprivilege.com/2013/11/13/embedding-a-simple-usernamepassword-authorization-server-in-web-api-v2/
The article describes the flow and where to do user authentication.
Upvotes: 1