55
Views
3
Comments
[Social Login Mobile] OAuth with Google on Mobile
Forge component by André Gonçalves
1
Published on 29 Oct 2020

Hi André,

the Social Login Component works really nice, except for Google OAuth on mobile (without safari), where an error 403 disallowed_useragent has been returned. Since 2019 you only are allowed to OAuth with google using the system browser. 

Regards,

Hans

Staff
Rank: #180

Hey Hans!

Thanks for that feedback! If you can, please rate the component and add your thoughts. 

What do you mean by "without safari"? Is it possible to have an iOS without Safari? :)

Thanks!

Rank: #360

Hi André, 

I want to use it on Android phones, but get the disallowed_agent error. 

Regards Hans

Rank: #9923

Google Sign-in OAuth does not allow in-app webview, see link. To enable Oauth with Google on mobile phone (specifically on Android) you can clone the LoginButton block then change the way of opening the Auth URL.

Use InAppBrowserPlugin instead of

window.open($parameters.url, "_self")

use InAppBrowserPlugin's Open client action with System as Target parameter

This will open the device's default browser.