Skip to content

feat: add Redis username authentication support #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

formbay-sanil
Copy link

  • 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 <[email protected]>
@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.

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