0.0.1 • Published 2 years ago
@bpfaas/middleware-auth v0.0.1
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 # 服务签名
0.0.1
2 years ago