Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is oAuth possible for C# Windows Application?

I have a windows application, developed in C#. where I need to perform Google oAuth so I'll get their profile. I don't want to ask the user to enter their Google Username and Password in my windows application (and of course users don't want that).

How can I do that ?

I tried 1.) Able to open Google Authentication page from my windows application, but can't figure it out how to get access token passed to my windows application.

Any inputs / suggestions ?

like image 504
user3470629 Avatar asked Apr 04 '14 18:04

user3470629


People also ask

What can OAuth be used for?

OAuth (pronounced “oh-auth”) is a technological standard that allows you to share information between services without exposing your password. It's a widely-adopted standard that's used by developers of websites and apps, and you probably use services every day that utilize OAuth.

What is difference between OAuth and JWT?

JWT token vs oauth token: JWT defines a token format while OAuth deals in defining authorization protocols. JWT is simple and easy to learn from the initial stage while OAuth is complex. OAuth uses both client-side and server-side storage while JWT must use only client-side storage. JWT has limited scope and use cases.

Should I use OAuth or OAuth2?

OAuth 2.0 is much more usable, but much more difficult to build securely. Much more flexible. OAuth 1.0 only handled web workflows, but OAuth 2.0 considers non-web clients as well. Better separation of duties.

Is OAuth difficult?

OAuth and OIDC are complicated, and it takes a lot of time and effort to understand and use them properly without opening yourself up to exploitation. The reason nobody cares about OAuth and OIDC is that OAuth and OIDC aren't what developers are interested in.


1 Answers

You can have a webBrowser control in you application. You can then let the user log in via the webBrowser control. You can then query the webBrowser control for the data.

like image 192
SamFisher83 Avatar answered Sep 18 '22 07:09

SamFisher83