Is there a way to direct googles OAuth 2 authentication to a C# WPF Browser within a desktop app?

1k views Asked by At

The default behaviour google uses for authenticating users right now is to open up the default system browser and have the user log into the account associated with the application, and then leave it up to the user to return to the application.

Since I can't avoid this process I was hoping I could make the authentication process take place within a wpf browser control so that its a bit friendlier to the user.

Is it possible to make this authentication happen in the browser control?

1

There are 1 answers

0
silverfighter On

This is a pretty lengthy stackoverflow question which appears more as an answer =) or an example. It does the Auth flow with Facebook but I am sure the concepts apply to google as well.

Facebook OAuth in WPF & C# Example

HTH