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
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.
I took a quick look. It looks like your gateway is NOT a ResourceServer, so it wouldn't accept an access token.
Also note, you shouldn't put secrets like (including access tokens) on GitHub or StackOverflow. I'd recommend you replace the secrets associated with this post.