Skip to content

Conversation

@gelluisaac
Copy link
Contributor

close #23
What's Included:
✅ Email/password login with JWT
✅ Starknet wallet authentication
✅ Role-based access control (Admin/User roles)
✅ Secure guards for protected routes

Key Files:

user.entity.ts (User model with roles)

auth.service.ts (Login logic)

jwt-auth.guard.ts (Token validation)

roles.guard.ts (Permission checks)

How to Test:

Email login: POST /auth/login

Wallet login: POST /auth/wallet-login

Try accessing GET /admin (Admin role required)

Notes:

Requires adding JWT_SECRET to .env

DB migration adds roles column to users

@gelluisaac gelluisaac marked this pull request as draft March 28, 2025 10:07
@gelluisaac gelluisaac marked this pull request as ready for review March 29, 2025 10:12
@anonfedora anonfedora self-requested a review March 29, 2025 11:57
@anonfedora
Copy link
Contributor

Attach screenshots, please?

@gelluisaac
Copy link
Contributor Author

alright i will do just that

@gelluisaac gelluisaac marked this pull request as draft April 1, 2025 20:48
@gelluisaac
Copy link
Contributor Author

Screenshot 2025-04-02 080921
Screenshot 2025-04-02 080948
Screenshot 2025-04-02 082136
Uploading Screenshot 2025-04-02 082315.png…

@gelluisaac gelluisaac marked this pull request as ready for review April 2, 2025 07:54
@anonfedora anonfedora merged commit 56c5e1c into BudgetChain:main Apr 2, 2025
3 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.

BE: Implement Comprehensive Authentication & Access Control System

2 participants