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