Re: [dotnetopenauth] C# desktop application and DotNetOpenAuth (OAuth2) documentation/examples?

4,660 views
Skip to first unread message

Andrew Arnott

unread,
Feb 21, 2013, 12:24:37 PM2/21/13
to dotnetopenid
Check out the OAuthConsumerWpf sample, downloadable from sourceforge. It includes an OAuth 2 tab that demonstrates an OAuth 2 client written for a desktop app.

--
Andrew Arnott
"I [may] not agree with what you have to say, but I'll defend to the death your right to say it." - S. G. Tallentyre


On Thu, Feb 21, 2013 at 9:12 AM, John Doe <ria...@gmail.com> wrote:
Hello

I see a lot of documentation on how to work with OAuth2 and ASP.NET but none for desktop applications such as C#. Where can some information be found about this and a quick/easy example on how to implement it?

Thank you

--
You received this message because you are subscribed to the Google Groups "DotNetOpenAuth" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotnetopenid...@googlegroups.com.
To post to this group, send email to dotnet...@googlegroups.com.
Visit this group at http://groups.google.com/group/dotnetopenid?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

John Doe

unread,
Feb 22, 2013, 3:32:16 AM2/22/13
to dotnet...@googlegroups.com
Thank you. I am going to check this out now.

I hope it is compatible with Windows Forms and .NET 4.0

John Doe

unread,
Feb 22, 2013, 6:05:12 AM2/22/13
to dotnet...@googlegroups.com
Porting to Windows Form is very time consuming. Any example you could put up using just Windows Forms?

Thank you


On Thursday, February 21, 2013 6:24:37 PM UTC+1, Andrew Arnott wrote:

Andrew Arnott

unread,
Feb 22, 2013, 10:29:09 AM2/22/13
to dotnetopenid, John Doe
Sorry, dude. I’m not going to port the whole app for you. It’s just a sample, not a starter app. And there’s nothing WPF specific about how it behaves like an OAuth client, so just looking over the code, closing an eye to the WPF specific stuff which is small, should help you with what you need.
 
I’m happy to continue answering specific questions you may have, of course.

Richie R

unread,
Sep 17, 2013, 4:33:00 PM9/17/13
to dotnet...@googlegroups.com, John Doe
Thanks for the project.

I've modified the OAuthConsumerWpf project to look at Facebook's published endpoints, using the Generic 2.0 tab:

Here's what I'm currently using:


Is the resource URL correct?

For SCOPE I used some common ones found from this page (i.e. email, user_birthday):
https://developers.facebook.com/docs/reference/login/

When I run this I get a 400 error (webpage can't be found). Is there something that I'm doing wrong that you notice?  Thanks for your help!





Authorization Endpoint URL: https://www.facebook.com/dialog/oauth
Access Token Endpoint URL: https://graph.facebook.com/oauth/access_token
User Profile Service URL: https://graph.facebook.com/me

When the Authorize2 page is called, I get a 400 error.
Reply all
Reply to author
Forward
0 new messages