Skip to content

Setup Devise and pundit policies with custom registration and session controllers - #6

Open
wra-wtag wants to merge 25 commits into
core-models-and-associations-based-on-erd-with-testsfrom
role-based-auth-system
Open

wra-wtag wants to merge 25 commits into
core-models-and-associations-based-on-erd-with-testsfrom
role-based-auth-system

Conversation

@wra-wtag

@wra-wtag wra-wtag commented Sep 24, 2025 •

Copy link
Copy Markdown
Owner

Implement Role-Based Authentication & Authorization

Trello Ticket: Implement Role-Based Authentication & Authorization

Description

Integrates Devise for user authentication and Pundit for role-based authorization. Adds custom Devise controllers (registrations, sessions, confirmations, passwords, unlocks, omniauth callbacks), Devise views and mailer templates, and implements model policies for users, companies, jobs, and job applications. Also adds confirmation email support and recruiter onboarding routing.

Changes

  • Installed and configured Devise (controllers + view templates + initializer).
  • Installed and configured Pundit; added ApplicationPolicy and per-model policies (User, Company, Job, Application).
  • Added custom controllers: users/registrations_controller, users/sessions_controller, users/confirmations_controller, users/passwords_controller, users/omniauth_callbacks_controller, users/unlocks_controller.
  • Added confirmation email sending and relevant controller updates.
  • Updated ApplicationController to include Pundit and configure permitted Devise parameters.
  • Added recruiter onboarding path and role-based redirect logic in HomeController.
  • Added/updated spec/requests/users_spec.rb and related helper specs.

@wra-wtag wra-wtag changed the title Setup Devise with custom registration and session controllers Setup Devise and pundit policies with custom registration and session controllers Sep 25, 2025
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