[jdev] Regitering new users with external component
Bryan Morgan
bdmorgan at gmail.com
Wed Nov 26 14:39:54 CST 2008
Dig and ye shall find :-) Here's some good info on the implementation
within ejabberd
http://www.jaim.at/2007/08/19/badlop-ejabberd-gets-xep-0033-extended-stanza-addressing/
On Wed, Nov 26, 2008 at 2:16 PM, Julien Genestoux <
julien.genestoux at gmail.com> wrote:
> Thanks Waqas for the help... I think I'll go for anonymous login...
> Thanks a lot!
>
>
> --
> Julien Genestoux
> http://www.ouvre-boite.com
> http://blog.notifixio.us
>
> +1 (415) 254 7340
> +33 (0)9 70 44 76 29
>
>
> On Tue, Nov 25, 2008 at 1:09 AM, Waqas Hussain <waqas20 at gmail.com> wrote:
>
>> On Mon, Nov 24, 2008 at 11:03 PM, Julien Genestoux
>> <julien.genestoux at gmail.com> wrote:
>> > Thanks Hussain for your precious help.
>> > I was able to set the Disco as well as implement XEP 077 (partially)...
>> > However, I still have a problem, to be able to send the IQs, my client
>> must
>> > already be registered against the server...
>> > The goal here is to be able to create users with the component
>> (only...), so
>> > how can clients connect to my component without being authenticated to
>> my
>> > server first?
>> > Thanks again!
>> >
>> >
>> > --
>> > Julien Genestoux
>> > http://www.ouvre-boite.com
>> > http://blog.notifixio.us
>> >
>> > +1 (415) 254 7340
>> > +33 (0)9 70 44 76 29
>> >
>> >
>> > On Sat, Nov 22, 2008 at 6:53 AM, Waqas Hussain <waqas20 at gmail.com>
>> wrote:
>> >>
>> >> On Sat, Nov 22, 2008 at 2:45 AM, Julien Genestoux
>> >> <julien.genestoux at gmail.com> wrote:
>> >> > Hey everyone,
>> >> > Some people complained about the fact that, despite our XMPP API,
>> users
>> >> > still had to register using our HTTP API (or thourgh our website). We
>> >> > agree
>> >> > this is a pain, so I wanted to implement user regsitration as well.
>> >> > However, I wanted to know if it was possible to manage this
>> regsitration
>> >> > within our component, and not on the Jabber server.
>> >> > Anyone knows if this is possible?
>> >> > Thanks a lot!
>> >> > Julien
>> >> >
>> >> > --
>> >> > Julien Genestoux
>> >> > http://www.ouvre-boite.com
>> >> > http://blog.notifixio.us
>> >> >
>> >> > +1 (415) 254 7340
>> >> > +33 (0)9 70 44 76 29
>> >> >
>> >> > _______________________________________________
>> >> > JDev mailing list
>> >> > FAQ: http://www.jabber.org/discussion-lists/jdev-faq
>> >> > Forum: http://www.jabberforum.org/forumdisplay.php?f=20
>> >> > Info: http://mail.jabber.org/mailman/listinfo/jdev
>> >> > Unsubscribe: JDev-unsubscribe at jabber.org
>> >> > _______________________________________________
>> >> >
>> >> >
>> >>
>> >> Yes, components can support registration, but you would need to manage
>> >> it on your own (i.e., save the registration data, etc). The relevent
>> >> XEP is XEP-0077: In-Band Registration. And you should also also
>> >> include <feature var="jabber:iq:register" /> in the disco#info replies
>> >> from your component.
>> >>
>> >> Note that this isn't the same as normal registration in that this is
>> >> generally used to provide initial login info, which your component
>> >> saves along with the JID, and then later you just check the JID of the
>> >> sender (and don't need to authenticate every time). MSN/Yahoo/etc
>> >> transports work this way.
>> >>
>> >> --
>> >> Waqas Hussain
>> >> _______________________________________________
>> >> JDev mailing list
>> >> FAQ: http://www.jabber.org/discussion-lists/jdev-faq
>> >> Forum: http://www.jabberforum.org/forumdisplay.php?f=20
>> >> Info: http://mail.jabber.org/mailman/listinfo/jdev
>> >> Unsubscribe: JDev-unsubscribe at jabber.org
>> >> _______________________________________________
>> >
>> >
>> > _______________________________________________
>> > JDev mailing list
>> > FAQ: http://www.jabber.org/discussion-lists/jdev-faq
>> > Forum: http://www.jabberforum.org/forumdisplay.php?f=20
>> > Info: http://mail.jabber.org/mailman/listinfo/jdev
>> > Unsubscribe: JDev-unsubscribe at jabber.org
>> > _______________________________________________
>> >
>> >
>>
>> There could be multiple ways to achieve that.
>>
>> Letting the server allow anonymous users would work (though you won't
>> be able to store JIDs of the users in your component, since they would
>> be random and temporary).
>>
>> You could write a module for an existing server, which lets the server
>> deal with the authentication, and the module with the IQs you want.
>> And you can run this server+module as a second server on the
>> sub-domain you want.
>>
>> Or you could just stop using auth on your component. I don't see why
>> you need it. If you get an IQ, then it's always from an authenticated
>> user. And if it's just some initial information you want to load for
>> JIDs, just send the user a form to fill (XEP-0004: Data Forms).
>>
>> Hope that helps.
>>
>> --
>> waqas
>> _______________________________________________
>> JDev mailing list
>> FAQ: http://www.jabber.org/discussion-lists/jdev-faq
>> Forum: http://www.jabberforum.org/forumdisplay.php?f=20
>> Info: http://mail.jabber.org/mailman/listinfo/jdev
>> Unsubscribe: JDev-unsubscribe at jabber.org
>> _______________________________________________
>>
>
>
> _______________________________________________
> JDev mailing list
> FAQ: http://www.jabber.org/discussion-lists/jdev-faq
> Forum: http://www.jabberforum.org/forumdisplay.php?f=20
> Info: http://mail.jabber.org/mailman/listinfo/jdev
> Unsubscribe: JDev-unsubscribe at jabber.org
> _______________________________________________
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20081126/d19cb02c/attachment-0003.htm>
More information about the JDev
mailing list