📄 c6313.htm
字号:
<HTML
><HEAD
><TITLE
>User Registration and Authorization</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="Programming Jabber"
HREF="book1.htm"><LINK
REL="UP"
TITLE="Putting Jabber's Concepts to Work"
HREF="p3608.htm"><LINK
REL="PREVIOUS"
TITLE="The X::IQ relationship"
HREF="x6299.htm"><LINK
REL="NEXT"
TITLE="XML Stream Flow"
HREF="x6334.htm"></HEAD
><BODY
CLASS="CHAPTER"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Programming Jabber</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x6299.htm"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x6334.htm"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="CHAPTER"
><H1
><A
NAME="JABTDG-CH-6"
>Chapter 6. User Registration and Authorization</A
></H1
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="c6313.htm#JABTDG-CH-6-SECT-INTRO"
></A
></DT
><DT
><A
HREF="x6334.htm"
>XML Stream Flow</A
></DT
><DT
><A
HREF="x6351.htm"
>User Registration</A
></DT
><DT
><A
HREF="x6569.htm"
>User Authentication</A
></DT
><DT
><A
HREF="x6787.htm"
>User Registration Script</A
></DT
></DL
></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="JABTDG-CH-6-SECT-INTRO"
></A
></H1
><P
>With all the Jabber building blocks at our fingertips at this stage, we
can now take a look at two fundamental processes that revolve around Jabber
users:</P
><P
></P
><UL
><LI
><P
>the registration, or creation, of Jabber user accounts</P
></LI
><LI
><P
>the authentication of a Jabber user account, including the
different authentication methods</P
></LI
></UL
><P
>These processes involve some of the things we learned about in the
previous chapter, so we'll take a look at them again along the way:</P
><P
></P
><UL
><LI
><P
>the XML stream header</P
></LI
><LI
><P
>the <TT
CLASS="LITERAL"
>jabber:iq:register</TT
> namespace</P
></LI
><LI
><P
>the <TT
CLASS="LITERAL"
>jabber:iq:auth</TT
> namespace</P
></LI
></UL
><P
>At the end of this chapter
we will create a small utility program with which we can register
users on a server. We can then use this utility program to create
users as required for further recipes in this book.</P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x6299.htm"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="book1.htm"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x6334.htm"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>The X::IQ relationship</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="p3608.htm"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>XML Stream Flow</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -