reactive-interaction-gateway
reactive-interaction-gateway copied to clipboard
Subscriptions controller: Ignore JWTs that can't be validated
Fixes #377.
-
For subscription requests, JWTs that can't be validated are now ignored. This allows to validate JWTs in an external service as configurable via the SUBMISSION_CHECK and SUBSCRIPTION_CHECK environment variables (which was the intention all along).
-
Response code changed: when connecting and subscribing at the same time, RIG replies with 403 (instead of 400) when not authorized to do so.
-
Ill-formed JWTs no longer cause subscription requests to fail.
-
Fixed SUBMISSION_CHECK=jwt_validation - it failed the check anytime, regardless of whether the JWT was valid.