Project

General

Profile

MUC Basic HTTP Authentication Issue: Retrieving list of available adhoc commands

wince jay
Added about 3 years ago

hi Guys,

Sorry to bother you all.

There is something wrong when i try to get available adhoc commands for muc component.

Below is my trying:

I send a get request by authentication done using HTTP Basic Authentication using Google Poster.

http://localhost:8080/rest/adhoc/muc@im.exmaple.com

I have a admin account for muc component called "multi-user-chat" and I type in the account and password correctly.But I got a http response from tigase server "Not authorized".

Could you guys can figure out the mistake i have ?Should i type in "muc@im.exmaple.com" but what's the password in correspondence with the account ?

Thanks in advance la~


Replies (2)

(1)

Added by Andrzej Wójcik IoT 1 CloudTigaseTeam about 3 years ago

To access MUC adhoc commands you should use admin account, however it is not possible to use "multi-user-char" as account for authentication. This account is for internal use only.

To properly use MUC adhoc commands I would suggest to create admin acount (create account using some XMPP client and adding this account to admins list --admins=@). This new admin account will be in form of @login@domain.com where domain.com is domain configured as vhost on your server.

I also think that you should not use: http://localhost:8080/rest/adhoc/muc@im.exmaple.com but rather use http://localhost:8080/rest/adhoc/muc.im.exmaple.com as proper JID of MUC component is muc.im.exmaple.com, while muc@im.exmaple.com is address for internal use only.

(1)

Added by wince jay about 3 years ago

"I also think that you should not use: http://localhost:8080/rest/adhoc/muc@im.exmaple.com but rather use http://localhost:8080/rest/adhoc/muc.im.exmaple.com as proper JID of MUC component is muc.im.exmaple.com, while muc@im.exmaple.com is address for internal use only."

Yeah,you are right.

I try to use the admin account(--admins= in init.properties) to get available adhoc command list and i got the expected results.Thanks for your patient!!

    (1-2/2)