RocketChat / RocketChat/Rocket.Chat

Create user without password for OAuth2 login

Open
#12,872 1 comment 5 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

Is there a way to create users via the REST API (users.create) without password? These users need to be able to log in via a custom OAuth2 provider which doesn't work if a user has a password set.

I know that users are created implicitly upon first login via OAuth2 but in this scenario I don't get the user ID from RocketChat which I need to trigger updates from a foreign system later. That's why my plan is to create users in RocketChat manually before they start using RocketChat.

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 reading the REST API users.create entry point and the OAuth2 user-provisioning flow. Determine how a user could be created without a password while remaining usable for OAuth2 login, and verify that the resulting user ID supports later updates from the foreign system.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api, authentication
Issue type
Feature
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.