@mashroom/mashroom-http-proxy-add-id-token
v2.1.3
Published
Mashroom Http Proxy interceptor that adds the OpenID ID/JWT token to every backend call
Downloads
5
Readme
Mashroom Add ID Token Http Proxy Interceptor
Plugin for Mashroom Server, a Microfrontend Integration Platform.
If you add this plugin it will add the ID/JWT token from the OpenId Connect plugin to every backend call.
Usage
If node_modules/@mashroom is configured as plugin path just add @mashroom/mashroom-csrf-protection as dependency.
You can override the default config in your Mashroom config file like this:
{
"plugins": {
"Mashroom Http Proxy Add ID Token Interceptor": {
"addBearer": false,
"idTokenHeader": "X-USER-ID-TOKEN",
"targetUris": [".*"]
}
}
}
- addBearer: Add the token as authorization bearer header (Default: false)
- idTokenHeader: The HTTP header for the ID token - has no effect if addBearer is true (Default: X-USER-ID-TOKEN)
- targetUris: A list of regular expressions that match URIs that should receive the headers (Default: [.*])