Application | Port |
---|---|
Users Service | rand (0) ... |
Spring Cloud Config Server | 8888 |
Netflix Eureka Naming Server | 8761 |
Netflix Zuul API Gateway Server | 8765 |
Zipkin Distributed Tracing Server | 9411 |
-
AuthenticationFilter.attemptAuthentication
- extract loginRequest
- generate UsernamePasswordAuthenticationToken
- provide email and password
-
UserServiceImpl.loadUserByUsername
- load user from DB by emal
- if not exist
- throw exception
- else
- return security.core.userdetails.User instance with email and encryptedPassword
-
AuthenticationFilter.successfulAuthentication
- extract emal from authResult
- load user entity from db
- generate JWT token
- append token and userId to response header