Commit Graph

18 Commits

Author SHA1 Message Date
admin ed1ea2ba42 renamed all instances of "id" to "jwt_sessions_id" to match db column name. 2026-03-14 09:37:06 +08:00
admin b6ab8d3187 Refactored refresh token endpoint 2026-03-13 16:51:44 +08:00
admin 8f51faeb12 added project status in project metadata 2026-03-05 09:10:06 +08:00
admin acebd04780 added logging for access token expiration 2026-02-27 09:34:05 +08:00
admin 2f9ac51570 fix(jwt): make role claims consistent with /me and correct additional_role_id
derive JWT roles from FetchUserByEmail (not GetRoleIDsFromEmail)
keep /me primary role as role_id
exclude primary role from additional_role_id (empty if no extra roles)
add project-to-role debug logs for role source tracing
2026-02-26 10:45:32 +08:00
admin 0017432deb fix payload 2026-02-25 16:22:10 +08:00
admin ed2eb67912 fixed query 2026-02-20 14:18:25 +08:00
admin fee314870d feat(auth): support multiple user roles in JWT and services
- Change JWT access token RoleID claim from int to []int to support multiple roles per user
- Update all token generation and refresh logic to handle multiple role IDs as []int
- Refactor services to return and process multiple role IDs from user_roles table
- Fix OAuth state handling explanation and improve code comments
- Clean up related function signatures and usages for consistency
2026-02-03 16:35:08 +08:00
admin f4b8651a5c fixed multiple roles! 2026-02-03 11:01:48 +08:00
admin 98f1705f72 fix 2026-01-27 13:20:03 +08:00
admin ac0ff00880 fix tests 2026-01-27 10:58:24 +08:00
admin 47f32c9f2e used RSA instead of HMAC signing 2026-01-05 10:44:23 +08:00
admin e54d121558 adjusted to fit the URS for JWT expiration time 2026-01-05 09:40:48 +08:00
admin ee45b546a3 added fetching of role_id 2025-12-18 10:25:04 +08:00
admin 8c67cd38e7 fixed 2025-12-15 14:10:10 +08:00
admin 44f7ddc1e3 fixed 2025-12-15 10:39:13 +08:00
admin 7c87114b30 fixed 2025-11-26 11:31:09 +08:00
admin 052c7e0cca init commit 2025-11-25 15:12:31 +08:00