0.0.7 • Published 5 years ago

express-gateway-plugin-jwt-custom v0.0.7

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Express gateway plugin jwt custom

Express gateway plugin Jwt custom for check expiration time.

Installation

Use the npm to install

npm install --save express-gateway-jwt-custom

Usage

configuration system.config.yml

plugins:
    jwt-custom:
        secretKey: "your-secret-key"
        jwtExtractor: "authBearer"
        messageErr: "your message" # optional

configuration gateway.config.yml

policies:
    - jwt-custom
    - proxy
    - jwt

pipelines:
  crudPipeline:
    apiEndpoints:
        - crudAPI
    policies:
        - jwt:
            - action:
                jwtExtractor: 'authBearer'
                checkCredentialExistence: false
                secretOrPublicKey: 'secretAuth'
        - jwt-custom:
        - proxy:
            - action:
                serviceEndpoint: crudService
0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago