Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Google API Authentication in a WPF App

Google API Authentication in a WPF App

Scheduled Pinned Locked Moved C#
securitycsharphtmlwpfcom
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kevin Marois
    wrote on last edited by
    #1

    I need to call Google's People API from a WPF app. Google has mandated that you cannot use embedded browsers any more[^]. Therefore, my app need to open the browser, presumably with Process.Start() to Google's Authentication page, and then somehow detect if/when the user has been authenticated. How would you go about that?

    If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

    D 1 Reply Last reply
    0
    • K Kevin Marois

      I need to call Google's People API from a WPF app. Google has mandated that you cannot use embedded browsers any more[^]. Therefore, my app need to open the browser, presumably with Process.Start() to Google's Authentication page, and then somehow detect if/when the user has been authenticated. How would you go about that?

      If it's not broken, fix it until it is. Everything makes sense in someone's mind. Ya can't fix stupid.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Again, you don't. Opening a browser and letting the user login using that doesn't give you ANY way of knowing when the user is logged in or not. I found samples provided by Google for Windows desktop apps just by reading the link you posted and following a couple links. They can be found at GitHub - googlesamples/oauth-apps-for-windows: OAuth for Apps: Samples for Windows[^].

      Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
      Dave Kreskowiak

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups