@bpfaas/middleware-auth
v0.0.1
Published
auth middleware of bpfaas in bpframework
Downloads
2
Readme
bpfaas service auth middleware in bpframework.
Middleware specification
https://github.com/bpfaas/middleware
usage
Setup.
// to use debugAdminServiceUrl
(global as any)__debugFeignClient = true
import { Application } from 'bpframework';
import * as middleware_auth from '@bpfaas/middleware-auth';
Application.use(middleware_auth.middleware('http://debugAdminServiceUrl'))
Application.runKoa(...);
Config.
spring:
application: xxxxxxxxx # 服务名字
service_sign:
faas_service_sign: xxxxxxxxx # 服务签名