I have been trying to build a spring distributed application that works on JWT. Github repo - https://github.com/dhananjay12/spring-microservice-demo
Service Description
- product-service : A simple downstream service having protected routes
- jwt-resoure-server : A jar that when included in downstream services make it a rsourceserver that extract jwt token and set it in security contex.
- eureka-service : Discovery service
- zuul-server : Edge server
Now product-service with jwt-resoure-server , works fine:
Setting up zuul and eureka:
But if I hit from the zuul server I get the following error:
I am using okta for authentication. I am not sure, where the error is coming from. Is it zuul not passing the token or some place else.
Any help would be appreciated. Thanks.