Skip to content

Password reset API endpoints#5

Open
sagargg wants to merge 6 commits intov2.11from
feat/password-reset
Open

Password reset API endpoints#5
sagargg wants to merge 6 commits intov2.11from
feat/password-reset

Conversation

@sagargg
Copy link
Copy Markdown
Member

@sagargg sagargg commented May 14, 2025

This pull request introduces significant enhancements to the CKAN authentication extension, including a revamped README.md, new password reset functionality, and refactored code for better organization and maintainability. Below is a summary of the most important changes:

Documentation Improvements:

  • Updated README.md with a detailed overview of features, installation instructions, configuration options, and API usage examples. Added sections for user login and password reset workflows.

New Features:

  • Implemented a password reset workflow with two new API actions: user_password_reset_request for requesting a password reset email and user_password_reset_confirm for confirming the reset using a JWT token. [1] [2]
  • Added a customizable HTML email template (paasword_reset_template.html) for password reset notifications.

Code Refactoring:

  • Moved the user_login action and related logic from ckanext/auth/logic.py to ckanext/auth/action.py for better separation of concerns.
  • Updated the plugin configuration in ckanext/auth/plugin.py to register the new password reset actions and reflect the refactored code structure.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 14, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ddab9cb6-029d-4b2c-bb04-6e1e3f7e2787

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/password-reset

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

1 participant