express-gateway-plugin-cookie-auth

5.1.0 • Public • Published

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]+)$']
      - proxy:
        - action:
            serviceEndpoint: exampleService
            changeOrigin: false

Readme

Keywords

none

Package Sidebar

Install

npm i express-gateway-plugin-cookie-auth

Weekly Downloads

1

Version

5.1.0

License

MIT

Unpacked Size

7.85 kB

Total Files

3

Last publish

Collaborators

  • mehdi.darmiche
  • kszymiczek_propbase
  • coozzyag