Skip to content

Conversation

formbay-sanil
Copy link
Contributor

  • Add username config option to Redis configuration
  • Support both username+password and password-only auth methods
  • Maintain backward compatibility with existing password-only setups
  • Improve error messages for authentication failures

Description
Explain what you have changed, and why.

Checklist:

  • Securely signed commits
  • Component(s) with PHPDoc blocks, only if necessary or adds value
  • Unit testing, with >80% coverage
  • User guide updated
  • Conforms to style guide

Copy link
Member

@michalsn michalsn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@formbay-sanil Thank you for sending a PR.

Please follow the failed checks: use isset instead of empty. Also run composer cs-fix to apply proper code styling.

@formbay-sanil formbay-sanil force-pushed the feat/redis-username-auth branch 2 times, most recently from fb5b67c to 080f914 Compare July 24, 2025 06:35
@michalsn
Copy link
Member

@formbay-sanil Thank you! Can you try to sign your commit? Here are some handy instructions: https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/workflow.md#gpg-signing-old-commits

@michalsn
Copy link
Member

And some info about code signing in general: https://github.com/codeigniter4/CodeIgniter4/blob/develop/contributing/signing.md

- Add username config option to Redis configuration
- Support both username+password and password-only auth methods
- Maintain backward compatibility with existing password-only setups
- Improve error messages for authentication failures

Signed-off-by: Sanil Shrestha <sanil.shrestha@formbay.com.au>
@formbay-sanil formbay-sanil force-pushed the feat/redis-username-auth branch from 080f914 to 171e23d Compare July 24, 2025 06:43
Copy link

@maniaba maniaba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider adding a PHPUnit test for this part to ensure it's properly covered.

@michalsn michalsn merged commit 0f95012 into codeigniter4:develop Aug 19, 2025
19 checks passed
@michalsn
Copy link
Member

Thank you @formbay-sanil

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants