I am a total newbie in the oAuth area and have set up DotNetOpenAuth to set up an oAuth Service provider. The sample provided in the DotNetOpenAuth download is quite confusing for me...maybe cos i am new to this stuff. There is one default page that creates a database and populates the database. Now I browse to the login.aspx and it asks me to put an openid, actually I want to use DNN (which implements DotNetOpenAuth) and i want to use those credentials on another site which will be the oAuth consumer. Can someone explain how to test the oAuth Service provider in the samples of DotNetOpenAuth?
You've stumbled on probably the worst sample included with DotNetOpenAuth. Sorry about that. You may find that the OpenID project templates present a simpler and more real-world idea of how to set up an OAuth Service Provider.
The sample you're working with now is a service provider that exposes a WCF Service using OAuth, so there's some complexity in the sample that won't be there for you if you're not using WCF. Here's what you need to do to get the sample going though:
This should work. Add comments to this answer if it doesn't and I'll edit this answer until we get it right. :)
Now regarding your DNN login -- no problem at all. As you may know, OAuth and OpenID are orthogonal to each other, so you can just switch out the OpenID login at the SP for a DNN login and the SP will work just fine -- although the matching up of user data in the database of course will require whatever work DNN requires.
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