README
express-gateway-plugin-cookie-auth
Creates a cookie-auth policy to protect pipelines with JWT tokens in id_token
cookie.
Install
eg install express-gateway-plugin-cookie-auth
Usage
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: <audience-to-validate>
redirect: example/path - this will redirect to BASE_URL(coozzy.ch)/example/path
passThrough: ['\/web\/properties\/([0-9]+)