sawanmishra / google-api-dotnet-client

Automatically exported from code.google.com/p/google-api-dotnet-client
Apache License 2.0
0 stars 0 forks source link

Embedded webcontrol #254

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
We are developing a cross platform commercial desktop app which must access 
YouTube Apis. We are moving from ClientLogin API, to OAuth 2 and see that on 
Mac there is a nice google OAuth 2 framework which displays a modal dialog with 
an embedded webview to get the user credentials. And on success the access 
token is delivered via a callback to the app. Nice and neat.

However with this .net version , things are much more complex both for user and 
developer. The main issue is that it opens a the system bowser as an external 
process instead of using the ubiquitous .net webcontrol. This takes the user 
outside our app forcing us to display a dummy modal dialog (like in the 
samples), and then wait for some process to be completed outside our app in an 
unknown browser which may already have multiple windows open, and then grab the 
access token from the title. Would be more more reliable to just use a 
webcontrol navigate event.

Why not allow an option In AuthorizationManager sample class to use embedded 
browser for native .net apps? Of course you can say its for security and so on, 
but then why use a webview for Mac and not for windows!!

Original issue reported on code.google.com by tuv...@gmail.com on 8 Sep 2012 at 6:45

GoogleCodeExporter commented 9 years ago
Hi Tuvman,
Each developer, for each application has their own idea about which way is 
best, that's why the api does not make expectations about how you choose to 
collect OAuth tokens.

The samples are there to show you possible ways to use this api, not the only 
way, you can go ahead and implement this anyway you see fit. If you feel 
strongly that it would be beneficial to have a sample using webcontrol we would 
welcome your contribution, see the guild lines at 
http://code.google.com/p/google-api-dotnet-client/wiki/BecomingAContributor.

Thanks for you time,
David.

Original comment by davidwat...@google.com on 12 Sep 2012 at 5:27