Is there a way to configure xmppframework in iOS for specific authentication mechanisms?
I am having problems connecting to the OpenFire server with the iPhoneXMPP sample application from http://code.google.com/p/xmppframework and I know that my jid, password and hostname / port are all correct, but after connecting I get callback to:
- (void)xmppStream:(XMPPStream *)sender didNotAuthenticate:(NSXMLElement *)error
with the corresponding error:
RECV: <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>
After the initial handshake, I get a delegate callback to
- (void)xmppStreamDidConnect:(XMPPStream *)sender { if (![[self xmppStream] authenticateWithPassword:password error:&error]) DDLogError(@"Error authenticating: %@", error); }
XMPStreamWithPassword class authentication method:
- (BOOL)authenticateWithPassword:(NSString *)password error:(NSError **)errPtr { ...
I'm kind of new to this, so I might be asking the wrong question. Please point in the right direction.
source share