Rank: Member Groups: Member
Joined: 5/15/2022 Posts: 10
|
What is the best way to log in to Google Drive using the EO.WebBrowser. Do you need to usegoogle oauth 2.0. If so, how? Any info would be greatly appreciated.
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
There are no reliable way for you to log into various Google sites (such as GMail, Google Drive, etc) through non-branded browser because Google actively blocks it. You can use OAuth to access Google service but that is mostly designed for desktop application that access Google Service with their own UI, not for loading Google's web pages directly. For example, if you were to write an Email client application based on Windows.Forms, then you could use OAuth to call Google's Authoriziation Server to get an access token and then use that token to call Gmail APIs (such as list all mails, read a message, etc). The key of this approach is:
1. The login process MUST be done through a branded browser. This would involves your application launching a sign Url with the system browser. After this step your application would get an access token; 2. The access token is used to access Google service APIs, NOT Google's web pages. The web pages are not intended to be loaded into any non-branded browsers;
In short, the login page MUST use Google's UI. Whereas the actual content MUST use your own UI.
|
Rank: Member Groups: Member
Joined: 5/15/2022 Posts: 10
|
THANKS for your response. This was very helpful.
|
Rank: Newbie Groups: Member
Joined: 7/18/2023 Posts: 1
|
Why does Google actively block login attempts from non-branded browsers? www myfedloan idrapp
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
jessica09 wrote:Why does Google actively block login attempts from non-branded browsers? Hi, Google's official explaination for this is for security reasons. See here for more details: https://support.google.com/accounts/answer/7675428?hl=en&sjid=6289722868241947509-NAThanks!
|