Skip to content

[BUG] Role obtained from oauth login are not updated at each connection #15225

@lmopi

Description

@lmopi

Description:

The roles of a logged in user from SSO are not updated if the user has a new idp role

Steps to reproduce:

  1. Configure a custom Oauth with merge roles from SSO: true
  2. Sign in for the first time with user1
  3. Add on the idp, a role to the user1
  4. Reconnect with user1

Expected behavior:

The roles of the user must be updated at each connection

Actual behavior:

Only the roles of the first connection are taken into account
The groups are correctly seen in the debug logs but the user is not updated
The role already exists on rocketchet

Server Setup Information:

  • Version of Rocket.Chat Server: 1.3.2
  • Operating System: Linux
  • Deployment Method: tar
  • Number of Running Instances: 1
  • NodeJS Version: v8.11.4
  • MongoDB Version: 4.0.12

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions