Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to authenticate Openfire XMPP with JWT token instead of username, password

I use Openfire for my chat server. In NestJS application server is used for authentication. While user registers, a XMPP account is also created using Openfire REST API plugin. I am using JWT authentication with my backend code.

What I want is when a user logs in the my application, it has to be automatically connected to XMPP server from web client using JWT. Is it possible to achieve this with JWT or any other suggestions welcomed.

like image 782
Seymur Avatar asked Dec 05 '25 08:12

Seymur


1 Answers

You can try this . I myself am implementing jwt authentication. I am following this link.

like image 160
Vinit Pillai Avatar answered Dec 07 '25 04:12

Vinit Pillai