I have a communication problem in my spring boot microservices.
I created some services as well as eureka server, api gateway and config server.
I defined auth service connecting to api gateway for the process of authentication and authorization. I used this service as creating a user, logining and refreshing token.
After I created a user and login in auth service through the port number of api gateway, I tried to make a request to the order service like
or
but I got 403 forbidden issue.
I knew there can be spring security problem among api gateway, auth service and order service but I couldn't find where the issue is.
Except for that, I cannot run any
test method defined in OrderControllerTest because of this reason.
How can I fix these issues?
I shared some code snippets regarding security config defined in 2 services and api gateway and gateway filter located in api gateway.
Here is **SecurityConfig** in **auth service**.
Here is **SecurityConfig** in **api gateway**.
Here is the **gatewayconfig** in **api gateway**
Here is **SecurityConfig** in **order service**.
Here is the **OrderControllerTest** shown below.
Here is the repo : [Link][1]
Here are the screenshots : [Link][2]
**To run the app,**
1 ) Run Service Registery (Eureka Server)
2 ) Run config server
3 ) Run zipkin and redis through these commands shown below on docker
4 ) Run api gateway
5 ) Run other services
[1]:
https://github.com/Rapter1990/microservicecoursedailybuffer
[2]:
https://drive.google.com/drive/folders/1BCMSj9STszd-GaHWJZE4a0IuLpUcXBxj?usp=sharing