[jdev] Question on login through OAuth
koren at dbis.rwth-aachen.de
Wed May 22 12:19:16 UTC 2013
> Thank you very much!
> I'll try this way.
> Kind regards
I tried something similar some time ago and I think to solve your problem
you would need an approach that links OpenID and OAuth. To keep the
"Google login experience" while having a secure implementation you would
need an XMPP server that first supports OpenID to login through Google
and second gives you an OAuth token to login to XMPP through the SASL
procedure mentioned by Jonas and Peter . Afaik there is no open XMPP
host supporting that.
You could of course do it the way you mentioned which is checking whether
login to Google was successful (in that case you get back an OAuth token)
and then use your automatically generated password to login to another
XMPP server. However automatically creating XMPP passwords is never a good
idea, just check  what WhatsApp did wrong in this matter..
A third solution (more of a hack...) would be to use Google Drive app data
folders  to save your auto-generated third-party credentials, but I am
not sure how safe that is.
> 2013/5/18 Peter Saint-Andre <stpeter at stpeter.im>
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>> On 5/18/13 8:37 AM, Jonas Wielicki wrote:
>> > Hi Stefano,
>> > While there is no XEP explicitly supporting OAuth, there seem to
>> > be approaches for using OAuth with SASL, which is the default
>> > authentication mechanism for XMPP.
>> > So in principle, it should be possible to use OAuth, without
>> > hardcoding passwords etc.. However, there is probably no software
>> > out there yet supporting that. I'd suggest you take some web search
>> > on how to use OAuth with SASL and maybe implement/contribute to the
>> > standards which are currently in the making (I found some IETF
>> > draft for sasl+oauth,
>> It's currently in working group last call.
>> > and some github code by doing a simple web search). You'll probably
>> > also have to patch server software to support that, and in turn set
>> > up your own XMPP service for this to work.
>> Sounds right. Perhaps over time we'll see more XMPP servers, clients,
>> and libraries supporting it (once it becomes standardized at the IETF).
>> - --
>> Peter Saint-Andre
>> -----BEGIN PGP SIGNATURE-----
>> Version: GnuPG/MacGPG2 v2.0.19 (Darwin)
>> Comment: GPGTools - http://gpgtools.org
>> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>> -----END PGP SIGNATURE-----
>> JDev mailing list
>> Info: http://mail.jabber.org/mailman/listinfo/jdev
>> Unsubscribe: JDev-unsubscribe at jabber.org
> JDev mailing list
> Info: http://mail.jabber.org/mailman/listinfo/jdev
> Unsubscribe: JDev-unsubscribe at jabber.org
More information about the JDev