Skip to content

Support sign in of third party auth provider user when their associated local user must change password #15461

@richard-cox

Description

@richard-cox

SURE-10596

Setup

  • Rancher version: v2.11

Describe the bug

  • normal flow
    • user installs rancher
    • user runs through setup flow
      • user sets the password of the local auth provider admin user
        • user's mustChangePassword set to false
    • user configures third party auth provider
      • user is associated with a user from the third party auth provider
  • unsupported flow
    • user installs rancher
    • third party auth provider automatically set up
      • including associated user with third party auth provider
      • local auth provider admin user password still requires reset
    • Bug - login attempts with third party oidc user associated with local admin auth provider fails

To Reproduce
We can shortcut the automation of above by the following

  • Install rancher + setup third party auth provider
  • Users & Authentication --> Users --> find the admin user --> Edit Config --> 'Ask user to change their password on next login' --> save
  • Logout
  • Try to log in with the user used when configuring third party auth provider

Result

  • on clicking 'login via x' user is just redirected back to the same page

Expected Result

  • SSO process followed, and if successful user is logged in

Metadata

Metadata

Assignees

Labels

JIRAQA/dev-automationIssues that engineers have written automation around so QA doesn't have look at thisarea/authAuthentication and RBACkind/bugpriority/0

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions