5.1.0 • Published 3 years ago

express-gateway-plugin-cookie-auth v5.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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
5.1.0

3 years ago

5.0.0

3 years ago

4.1.0

3 years ago

3.1.0

4 years ago

4.0.1

3 years ago

4.0.0

3 years ago

4.0.2

3 years ago

3.0.3

4 years ago

3.0.2

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.0.0

4 years ago

1.4.0

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.7

6 years ago

1.2.6

6 years ago

1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago