authorizer icon indicating copy to clipboard operation
authorizer copied to clipboard

Add integration test for roles update

Open lakhansamani opened this issue 4 years ago • 1 comments

Feature Description

Updating the role can block signup, login other auth recipes. It's critical to add test and validate functionality

Describe the solution you'd like

Test to be included.

  • Validate signup with the new role (it should fail as the new role is not yet added)
  • Validate login with the new role (it should fail as the new role is not yet added)
  • Validate magic link login with the new role (it should fail as the new role is not yet added)
  • Validate social media login with the new role (it should fail as the new role is not yet added)
  • Update env with new roles
  • Retry all the validation tests mentioned above and they should pass.

Describe alternatives you've considered

Additional context

lakhansamani avatar Jun 07 '22 02:06 lakhansamani

Changing roles at runtime was removed in v2. Roles are now startup flags (--roles, --default-roles, --protected-roles) and _update_env is deprecated, so the update-then-retry scenario here no longer exists. Rejection of unknown and protected roles is covered by integration tests. Closing as obsolete.

lakhansamani avatar Nov 25 '26 07:11 lakhansamani