RabbitMQ oAuth2.0 plugin forward username claim from jwt to amqp message header #11851
-
I want to know if there is any possibility to forward the user name claim from JWT to the AMQP message so that the message consumer can verify the username claim. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
In AMQP 0-9-1, applications can set the If you do not trust some of your applications, you need to authenticate using x.509 certificates, use message signing (in your own code), end-to-end encryption, and similar solutions, not a username comparison. |
Beta Was this translation helpful? Give feedback.
@arkadipdigite there is no such plugin. In theory a channel interceptor plugin could populate a message property (or header) from a token, although I am not sure if an interceptor would have access to the authorization context in order to get the token.
In any case, you are welcome to try to develop one.