RocketChat / RocketChat/Rocket.Chat

Turn off "Allow Username Change" doesn't work with custom OAuth on Mobile

Open
#27,126 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

Login with custom OAuth stuck at enter new username step when turning off "Allow Username Change". Login with the same OAuth works with Web client

Steps to reproduce:
  1. Create a custom OAuth
  2. Turn off "Allow Username Change" setting
  3. Login with custom OAuth from mobile app
  4. Enter new username and save
Expected behavior:

Save the new username successfully

Actual behavior:

Error when saving new username

Server Setup Information:
  • Version of Rocket.Chat Server:
  • Operating System: Ubuntu 18.04
  • Deployment Method: Docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog: Enabled
  • NodeJS Version: v14.19.3
  • MongoDB Version: 4.4.15
Client Setup Information
  • Desktop App or Browser Version: ReactNative 4.32.0
Additional context

error mobile
(We modified the code to show the error)

Relevant logs:

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 custom OAuth login in the ReactNative mobile app with “Allow Username Change” disabled, then compare it with the working Web client flow. Trace the username-save request and its error response; done means the new username saves successfully on mobile under this setting.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.