Quantcast
Channel: Ignite Realtime : Unanswered Discussions - Support
Viewing all articles
Browse latest Browse all 4979

loginAnonymously() failing with No anonymous SASL authentication mechanism available

$
0
0

Stream features return this

<stream:features><c xmlns='http://jabber.org/protocol/caps' hash='sha-1' node='http://www.process-one.net/en/ejabberd/' ver='NNSkMI299gYn2owE++G9vLt4oCg='/><register xmlns='http://jabber.org/features/iq-register'/><starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>PLAIN</mechanism><mechanism >DIGEST-MD5</mechanism><mechanism>X-OAUTH2</mechanism><mechanism>SCRAM-SHA-1</me chanism></mechanisms></stream:features>

 

I need to register a user and looks like I need to login anonymously first and then use the AccountManager to create the new user. Otherwise i get the forbidden auth error.

But when i try to call the loginAnonymously() method on the connection it fails with

org.jivesoftware.smack.SmackException: No anonymous SASL authentication mechanism available

 

This is my config setup

config.setSecurityMode(ConnectionConfiguration.SecurityMode.required);

config.setServiceName(getService());

config.setHost(getHost());

config.setPort(getPort());
config.setDebuggerEnabled(true);

config.setSendPresence(true);

 

Not sure how to proceed from here.  Please help. Thanks


Viewing all articles
Browse latest Browse all 4979

Trending Articles