Login Request: Difference between revisions
Jump to navigation
Jump to search
imported>Refractor 1 revision: importing preprocessed wiki pages |
imported>Lisured No edit summary |
||
Line 1: | Line 1: | ||
Before the client can communicate with a [[zone]], it must first authenticate. [[SmartFoxServer]] provides a custom login feature, which most people (who use SmartFoxServer) utilise in order to provide an additional layer of security. A login [[extension]] accepts two parameters, as documented below, and (can) return either an XML login notice (logOK), an XML login fail (logKO), or a custom event (i.e. with Club Penguin a [[Standard | Before the client can communicate with a [[zone]], it must first authenticate. [[SmartFoxServer]] provides a custom login feature, which most people (who use SmartFoxServer) utilise in order to provide an additional layer of security. A login [[extension]] accepts two parameters, as documented below, and (can) return either an XML login notice (logOK), an XML login fail (logKO), or a custom event (i.e. with Club Penguin a [[Standard Packets|standard]] [[Login Response]]. | ||
<code><msg t='sys'><body action='login' r='0'><login z='w1'><nick><![CDATA[Jamie]]></nick><pword><![CDATA[d9129e4a7dbcb0bd7ae8ee6b512d92bc]]></pword></login></body></msg></code> | <code><msg t='sys'><body action='login' r='0'><login z='w1'><nick><![CDATA[Jamie]]></nick><pword><![CDATA[d9129e4a7dbcb0bd7ae8ee6b512d92bc]]></pword></login></body></msg></code> | ||
Line 23: | Line 23: | ||
==Club Penguin Specific== | ==Club Penguin Specific== | ||
Because at this point the Club Penguin login extension code handles this request, we receive a [[Standard | Because at this point the Club Penguin login extension code handles this request, we receive a [[Standard Packets|standard]] [[Login Response]]. | ||
[[Category:XML Packets]] | [[Category:XML Packets]] |
Latest revision as of 21:43, 15 November 2014
Before the client can communicate with a zone, it must first authenticate. SmartFoxServer provides a custom login feature, which most people (who use SmartFoxServer) utilise in order to provide an additional layer of security. A login extension accepts two parameters, as documented below, and (can) return either an XML login notice (logOK), an XML login fail (logKO), or a custom event (i.e. with Club Penguin a standard Login Response.
<msg t='sys'><body action='login' r='0'><login z='w1'><nick><![CDATA[Jamie]]></nick><pword><![CDATA[d9129e4a7dbcb0bd7ae8ee6b512d92bc]]></pword></login></body></msg>
Action | login |
---|---|
XML Node | <login /> |
z | The zone for the server to log into (w1) |
<nick /> | The client's requested nickname (usually wrapped with <![CDATA[ ]]> tags) |
<pword /> | The password (hash) the client uses to log in. This is only used with custom logins. |
Club Penguin Specific
Because at this point the Club Penguin login extension code handles this request, we receive a standard Login Response.