This is plugin for Express Gateway The main purpose for authenticate with auth service that impl OpenId Connect standard This plugin useful for integrating with old login merchanism
$ yarn add express-gateway-plugin-authorizing
- [Fronted-end] Condition for invoking request: Add Extra Header Key-Value:
Auth-Type = "SSO"
- Declare
plugins.express-gateway-plugin-authorizing
insystem.config.yml
- [Config-Gateway] Add config
SSO_ENDPOINT
,USER_INFO_SERVICE
orSSO_INTROSPECT_ENDPOINT
toaction params
- [How-it-work] Request will pass to introspect/userinfo endpoint and caching ttl and decide to pass-through or denied request.
- Re-test
Express Gateway plugin explanation: Plugin Documentation
CLI for installing and configuring plugin: Plugins CLI
Guidlines how to write your custom plugin: Plugin Development Guide
Express Gateway Boot Sequence explains order in which plugin entities are loaded and executed.