1

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?

  • you can always embed a browser inside WPF and then take the Auth cookie once it is done. Not sure if google allows this but that's how I do it for my own project – Steve Jan 05 '17 at 20:23
  • 1
    It is possible to use a browser control for OAuth, however, it is not recommended. https://tools.ietf.org/html/draft-ietf-oauth-native-apps-03#section-8.1 – lgaud Jan 05 '17 at 20:34

1 Answers1

1

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

Community
  • 1
  • 1
silverfighter
  • 6,762
  • 10
  • 46
  • 73