I'm new to express gateway, I've created login in my user service and created oauth2 credentials in gateway, got the secret key and store it as httpOnly cookie on client. Now I have a protected route that I want authenticated users be able to work with, here is my code in gateway config file :
pipelines:
...
users:
apiEndpoints:
- users
policies:
- oauth2:
- proxy:
- action:
serviceEndpoint: users
But it doesn't recognize secret from client cookie. How can I make it work?