January 2002
Beginner
480 pages
13h 15m
English
The jabber:iq:auth namespace is used to
qualify a structured authentication procedure between client and server.
Details of authentication are covered in Chapter 7; however, here we will look at the simplest authentication conversation between client and server. In this example, the client sends a username and password, and the server responds by sending a “successful” response, acknowledging the user’s credentials, thus creating a session for that user:
SEND: <iq type='set' id='auth0'>
<query xmlns='jabber:iq:auth'>
<username>sabine</username>
<password>geheimnis</password>
<resource>WinJab</resource>
</query>
</iq>
RECV: <iq type='result' id='auth0'/>
Read now
Unlock full access