Fix Multi-Tenant Approach
Features
- It's now possible to register multiple strategies with the same scheme
keycloak-jwt
Changes
name
is a new unique strategy-related option.apiKey.url
not longer accepts placeholders- The option setup changed. All plugin-related options are used as defaults for [strategy-related options][strategy-options].
- Even though every strategy-related option can also set via the plugin options,
apiKey
can only be set once in the plugin options.
In case of multiple registered strategies for this scheme:
- Use at least a different
name
option in each strategy. server.kjwt.validate
requiresname
as second argument
Attention
- Needs a custom scheme when multiple strategies are used on single routes. More information: hapijs/hapi#3444 (comment)