234
Views
9
Comments
[Social Login Mobile] OAuth with Google on Mobile
social-login-mobile
Mobile icon
Forge asset by OutSystems

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

2020-03-16 11-12-15
André Gonçalves
Staff

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!

2021-07-07 13-36-32
Hans Dollen

Hi André, 

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

Regards Hans

UserImage.jpg
Nico Pineda

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.

2020-07-13 18-35-41
Neil Gonzales

Would it be ok to get the sample? I tried but I get keystore plugin not available.  Thanks for your help.

2020-07-13 18-35-41
Neil Gonzales

Hi Everyone, 


I have tried this approach and was successfully authenticated the Google from mobile app to web (thru InAppBrowser plugin). Now, my problem is, in spite of complete authentication, my mobile is still opening the Google Login page. Any advise on how to solve this? Thank you in advance.

UserImage.jpg
Ari Auditianto

Hi @Neil Gonzales do you manage to make this working? i also hit same problem, using inappbrowser with target=System will open the actual browser and its not redirecting to the ValidateAuthorization inside the application

UserImage.jpg
Juan Yañez

Hello! i tried to use InAppBrowser with target in SYSTEM, but i had the same problem, the login is disabled when the InAppBrowser was opened.

I searched about this issue and i found a topic about social login, that integration is disabled when using an embedded browser inside of a mobile app, can anyone use in 2022 an integration to do a social login? I tried with many plugins in outsystems but all plugin are using InAppBrowser...



2020-07-13 18-35-41
Neil Gonzales
2023-08-28 07-00-10
Paulo Torres
Champion

Hello all,

Some solution for this?

Thanks

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.