0.0.7 • Published 4 years ago

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

Weekly downloads
-
License
ISC
Repository
-
Last release
4 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

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago