Authentication in Gateway Service
1 min readJul 12, 2020
Add below mention dependencies
// Spring Security
- compile ‘org.springframework.boot:spring-boot-starter-security’
- compile ‘io.jsonwebtoken:jjwt:0.9.1’
Add WebSecurity and Authorization Filter
We have loaded four environment variable and define that configuration in Config Service/gateway-service.
That’s it now our API Gateway and User Service is protected with Spring Security. So let’s do some testing and try to create user and do login.