Disallowed useragent using Google OAuth -- with Captive Portal and OneAll

This is a copy & Paste from the error I am getting on my iOS Captive Portal when trying to authenticate though google/OneAll.

Can you help us correct this??


  1. That’s an error.

Error: disallowed_useragent

This user-agent is not permitted to make an OAuth authorization request to Google as it is classified as an embedded user-agent (also known as a web-view). Per our policy, only browsers are permitted to make authorization requests to Google. We offer several libraries and samples for native apps to perform authorization requests in the browser.

Learn more

Request Details
response_type=code
client_id=438691358082-n2e26qfpc0rkn9qbd6ue3qnob2jvs72k.apps.googleusercontent.com
redirect_uri=https://synapticintellive.api.oneall.com/socialize/callback.html
state=263aac14-18c8-4f32-8790-8a6387f3937b
access_type=offline
approval_prompt=auto
scope=email https://www.googleapis.com/auth/user.addresses.read https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/plus.profile.emails.read profile
That’s all we know.

Answers

  • Hello, I receive the disallowed user agent on an android application, showing the login / website in a webview of the mobile app.

    Is there anything what can be done?

  • DamienDamienMemberAdministratorOneAll Team

    The problem is coming from the fact that Google doesn't accept login way through webviews anymore and ask for dedicated browser. I've seen that people are forcing "fake" user agent to be able to still use webviews.

    Best regards,

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.