MetaMask / MetaMask/metamask-mobile

Google oauth is broken in metamask browser

Open
#5,710 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

browser feature-request team-mobile-platform
Dominant language
TypeScript
Stars
3k
Forks
1.7k
Avg merge
1d 14h
Merged PRs (30d)
669

Description

**Describe the bug**
When user open app via MetaMask mobile browser and trying to use google Authorization - google return error 403 disallowed_useragent instead of login form.

**Screenshots**
![image](https://user-images.githubusercontent.com/51945752/217014313-47bb6da4-5e74-43da-b0e7-6e2bb1521832.png)

**To Reproduce**
Works with any website that have google oauth. For example:
1. Open metamask mobile app.
2. Open drawer menu and navigate to Browser.
3. Open https://id.atlassian.com/login.
4. Press "Login with Google".
5. See 403 error.

**Expected behavior**
When user open app via MetaMask mobile browser and trying to use google Authorization - google return login form and let user proceed.

**Smartphone (please complete the following information):**
- Device: iPhone 11
- OS: iOs 16.1.1
- App Version: 5.14.0(1055)

-------------------------------------------------------------
_to be added after bug submission by internal support / PM_
**Severity**

- How critical is the impact of this bug on a user?
- Add stats if available on % of customers impacted
- Is this visible to all users?
- Is this tech debt?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the flow in the MetaMask mobile app's Browser on an iPhone: open id.atlassian.com/login and select "Login with Google." Trace the mobile browser's Google OAuth handling and verify that the flow shows Google's login form instead of returning the 403 disallowed_useragent error.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, react-native, typescript
Domain
authentication, mobile-dev, web-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.