express-gateway-plugin-authorizing
v1.0.5
Published
Plugin Authorizing for Express Gateway
Downloads
3
Readme
express-gateway-plugin-authorizing
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
Getting Started in 5 minutes:
$ yarn add express-gateway-plugin-authorizing
Configure this plugin:
- [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
Detailed documentation:
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.