Auth and security
Login, registration and role-based access across services.
- Type
- Work
- Role
- Backend developer, Auth Service
- Status
- Shipped
- When
- 2023 to present
Java 17 Spring Boot Spring Security JWT API Gateway Feign Client
Problem
Every service had to trust the same identity, and calls between services had to be secured as well as the calls from the browser.
Approach
- Registration and login issue JWTs through Spring Security.
- Role-based access control guards endpoints.
- A refresh flow renews tokens without a new login.
- Inter-service calls through Feign clients carry secured credentials.
diagram: auth-and-security
Architecture
Fit shows the whole map. Zoom in, then drag or scroll to explore.
Connections
- Angular client to API GatewayHTTPS + JWT
- API Gateway to Auth Servicelogin, refresh
- API Gateway to Other servicesverified JWT
- Auth Service to MySQLusers, roles