express-gateway-plugin-jwt-custom
v0.0.7
Published
Express gateway plugin Jwt custom for check expiration time
Readme
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-customUsage
configuration system.config.yml
plugins:
jwt-custom:
secretKey: "your-secret-key"
jwtExtractor: "authBearer"
messageErr: "your message" # optionalconfiguration 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