-
aaronD
Im pretty new to xmpp and I rly don't find online how to login with xmpp-sasl using custom mechanism, can anybody help me? https://www.codepile.net/pile/k3VeyNBJ
-
Kev
It’s not clear, at least to me, what the question you’re asking is.
-
aaronD
Well I want to get in the chat servers of a game but dhey are using as auth 2 jwt tokens and I rly don't know how to implement that with node and there Is rly not that much documentation on this. https://www.npmjs.com/package/@xmpp/sasl
-
aaronD
Did you see the xml code
-
aaronD
?
-
Kev
Ah, so what you need is help specific to that library, I guess. I’m afraid I’ve never used it, I don’t know if anyone else here has.
-
aaronD
It doesn't have to be exactly that library but that one Is quite populair In node and I saw dhey got sasl.
-
Kev
All XMPP libraries do SASL, mind - it’s a core requirement.
-
aaronD
ah lol ok, yea I don't know much about xmpp, like do you know any source where you can learn It good for node or python?
-
Kev
The examples in XMPP: The Definitive Guide (disclaimer: author) are Python-based, although I believe SleekXMPP is all but abandoned at this point and you’d want to update them to slixmpp, which is a more maintained fork. The book would give you a pretty good understanding of XMPP itself, though, if that’s what you want.
-
Kev
You could also just read the RFCs (start with 6120 and 6121) and the XEP series, but that is a tremendously dry (although free!) way to learn.
-
aaronD
ok ty
-
Kev
Although if you’re trying to auth to (I assume) LoL , do you know how their custom SASL mechanism works? Because if not, you’ll not be able to auth unless you can work that out.
-
aaronD
I just don't understand how their Is no example online for using custom SASL mechanism on node or python
-
aaronD
There are a couple of projects on github with xmpp chat server on league but Its all outdated and in the past dhey didn't use jwt tokens to authorize
-
Zash
Find out how something simple like SASL PLAIN is implemented
-
Zash
which seems to be provided by https://www.npmjs.com/package/sasl-plain via https://github.com/xmppjs/xmpp.js/tree/master/packages/sasl-plain
-
aaronD
ok will check It out