RocketChat / Rocket.Chat

The communications platform that puts data protection first.
https://rocket.chat/
Other
40.4k stars 10.51k forks source link

OAuth - SSO role sync not working after user first login #18429

Closed ShellyXueHan closed 4 years ago

ShellyXueHan commented 4 years ago

Description:

We have enabled the Merge Roles from SSO. The roles are successfully synced when user login for the first time. But when users have role updates from SSO, it's not synced for any further logins.

Steps to reproduce:

  1. Enable Merge Roles from SSO in Oauth setting
  2. Sign in for the first time with user1, and test out if SSO roles is synced (yes)
  3. Add a new SSO role to the user1
  4. Login again with user1

Expected behavior:

User's role should be synced up in Rocketchat based on the SSO role for each user login.

Actual behavior:

SSO roles are only synced during the first time login.

Server Setup Information:

Client Setup Information

Additional context

This is a dup for https://github.com/RocketChat/Rocket.Chat/issues/15225. But issue still exist in version 3.4.*

Relevant logs:

github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.