Skip to content

[MacCoss] Issue 50841: Include detail when basic auth password matches but does not meet complexity rules #5692

@labkey-jeckels

Description

@labkey-jeckels

Issue 50841

  • Dev work @labkey-adam
  • Fix automated tests @labkey-adam
  • Test Python client API @labkey-nicka
  • Test R client API @labkey-klum
    • Valid password which doesn't meet complexity requirements. Server log shows : failed to login: password does not meet the complexity requirements
    • However the client is just seeing this message "exception" : "User does not have permission to perform this operation.". Perhaps still throwing UnauthorizedException?

Test scenario:

  • Valid credentials
  • Bad credentials
  • Credentials that match the stored password but are expired
    -- Note the Database Authentication "expire every five seconds" option that makes testing this easy
  • Credentials that match the stored password but don't meet current complexity requirements
    -- Reduce complexity requirement
    -- Create user and set minimal password
    -- Raise complexity requirement
    -- Make API call with minimal credentials
    -- Verify response includes message about complexity rule and needing to change password

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions