क्या किसी विशिष्ट प्रमाणीकरण तंत्र के लिए आईओएस पर xmppframework को कॉन्फ़िगर करने का कोई तरीका है?xmppframework (आईओएस) और प्रमाणीकरण प्रकारों को कॉन्फ़िगर करना
मैं मुसीबत http://code.google.com/p/xmppframework से नमूना iPhoneXMPP अनुप्रयोग के साथ एक OpenFire सर्वर से कनेक्ट हो रही है और मुझे पता है कि मेरी JID, पासवर्ड और होस्टनाम/पोर्ट सब सही हैं लेकिन जोड़ने के बाद, मैं पर एक कॉलबैक मिलती है:
- (void)xmppStream:(XMPPStream *)sender didNotAuthenticate:(NSXMLElement *)error
इसी त्रुटि के साथ:
RECV: <failure xmlns="urn:ietf:params:xml:ns:xmpp-sasl"><not-authorized/></failure>
प्रारंभिक हाथ मिलाना के बाद, मैं
के लिए प्रतिनिधि कॉलबैक प्राप्तXMPStream वर्ग के authenticateWithPassword विधि:
- (BOOL)authenticateWithPassword:(NSString *)password error:(NSError **)errPtr
{
...
// Reaches here and we get back a 'YES' because the server reports that one of the
// supported mechanisms by 'stream:features' is DIGEST-MD5
if ([self supportsDigestMD5Authentication])
{
// send the digest data along with with password
}
...
मैं इस के लिए नया की तरह कर रहा हूँ तो मैं शायद गलत सवाल पूछ। कृपया सही दिशा में इंगित करें।