Skip to content

feat: Add JWT authentication filter and service#5

Merged
janosevicsm merged 1 commit intodevelopfrom
feature/authentication-filter
Feb 15, 2026
Merged

feat: Add JWT authentication filter and service#5
janosevicsm merged 1 commit intodevelopfrom
feature/authentication-filter

Conversation

@janosevicsm
Copy link
Contributor

Introduce JWT-based authentication for the gateway: add JwtAuthenticationFilter (OncePerRequestFilter) that skips public paths, validates Bearer tokens, injects X-User-Id and X-User-Role headers, and returns 401 on failure. Add JwtService to parse and extract userId/role from tokens using jjwt. Add jjwt dependencies to build.gradle.kts and wire a base64 JWT secret via environment (.local.env) and application.properties default.

Introduce JWT-based authentication for the gateway: add JwtAuthenticationFilter (OncePerRequestFilter) that skips public paths, validates Bearer tokens, injects X-User-Id and X-User-Role headers, and returns 401 on failure. Add JwtService to parse and extract userId/role from tokens using jjwt. Add jjwt dependencies to build.gradle.kts and wire a base64 JWT secret via environment (.local.env) and application.properties default.
@janosevicsm janosevicsm self-assigned this Feb 15, 2026
@janosevicsm janosevicsm merged commit 8d32269 into develop Feb 15, 2026
1 check 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.

2 participants

Comments