[jdev] Custom authentication errors
Vinod Panicker
vinod.p at gmail.com
Wed May 31 00:00:32 CDT 2006
On 5/30/06, Peter Saint-Andre <stpeter at jabber.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Vinod Panicker wrote:
> > Hi,
> >
> > I have a use case where the server needs to return specific messages
> > to the client in case of authentication failures. I looked at the
> > schema and it's pretty restrictive in what is being allowed during the
> > sasl handshake.
> >
> > Would it make sense to relax the schema to allow text between the
> > error conditions, say like this -
> >
> > <failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
> > <temporary-auth-failure>Server under maintenance, please try after
> > some time.</temporary-auth-failure>
> > </failure>
> > </stream:stream>
>
> I think is would be better to emulate the structure of stanza errors:
>
> <failure xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
> <temporary-auth-failure/>
> <text>Server under maintenance, please try after
> some time.</text>
> </failure>
> </stream:stream>
Sounds good to me. Could we also have the <text/> element within a
<success/> element too? Thats another use case that I have. Would
you be pushing these changes in 3920bis?
Regards,
Vinod.
More information about the JDev
mailing list