Creates a **cookie-auth** policy to protect pipelines with JWT tokens in `id_token` cookie.
npm install express-gateway-plugin-cookie-authid_token cookie.
eg install express-gateway-plugin-cookie-auth
http:
port: 80
apiEndpoints:
exampleApi:
host: '*'
serviceEndpoints:
exampleService:
url: 'http://example.com'
policies:
- proxy
- cookie-auth
pipelines:
examplePipeline:
apiEndpoints:
- exampleApi
policies:
- cookie-auth:
- action:
secretOrPublicKeyFile: /var/lib/eg/jwt/key.pem
audience:
redirect: example/path - this will redirect to BASE_URL(coozzy.ch)/example/path
passThrough: ['\/web\/properties\/([0-9]+)$']
- proxy:
- action:
serviceEndpoint: exampleService
changeOrigin: false
``