0.0.1 • Published 2 years ago

@bpfaas/middleware-auth v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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      # 服务签名