Skip to content

release: authentication and authorization - #16

Merged
vinimachadosantana merged 4 commits into
mainfrom
develop
Aug 7, 2026
Merged

release: authentication and authorization#16
vinimachadosantana merged 4 commits into
mainfrom
develop

Conversation

@vinimachadosantana

Copy link
Copy Markdown
Owner

What

Promotes auth and authorization to production with password login, revocable session tokens, organisations with roles, and Pundit policies.

Why

Loop now has real users and a tenancy boundary, access is decided by policy, not convention.

Testing

  • Verified on develop
  • Cross-tenant access returns 404
  • CI green

* chore: add bcrypt for password hashing

* feat: add password authentication to user

* chore: add spec password lenghthy enough

* feat: add registration endpoint
* feat: add session model with secure tokens

* feat: add authentication concern with bearer tokens

* feat: add login and logout endpoints
* feat: add organization and membership models

* feat: add organization endpoints
* chore: add pundit

* feat: add authorization policies with scoped queries

* test: add cross-tenant authorization specs

* chore: add pundit-matchers

* fix: skip authorization on public auth endpoints and pundit callbacks

* fix: user policy final newline
@vinimachadosantana vinimachadosantana self-assigned this Aug 7, 2026
@vinimachadosantana
vinimachadosantana merged commit df779ac into main Aug 7, 2026
7 checks passed
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