Unable to sign-in to Google Account using in-app browsers or web-views with keycloak

I am facing issue with google sing-in using in-app browsers or web-view. I am using keycloak to authenticate.

Now when we signup using the app in Genymotion using google we see the error

403 error disallowed_useragent.

image

I am getting the following link to discontinue google sign-in from the in-app browser or web view. see the below linkhttps://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html?m=1

Please help on this issue.

I recently encountered the same issue. My app has been operational with Google authentication for many months now and all of the sudden users start seeing this.

It seems like google has changed their policy regarding authentication, they detail it here: https://developers.googleblog.com/2016/08/modernizing-oauth-interactions-in-native-apps.html

I guess the months have come…

try this

I fixed this problem using this workaround.
Open your cordova’s configuration file called “config.xml” and add the following line:

<preference name="OverrideUserAgent" value="Mozilla/5.0 Google" />

read it here