所以我试图弄清楚如何使用这个 jwt 令牌登录到 xmpp 客户端。我没有使用 xmpp 的经验,所以当我上网时,我只看到使用用户登录并通过的代码。任何人都可以帮助我或引导我找到有关如何执行此操作的资源?
[OUT]
<?xml version="1.0" encoding="UTF-8"?>
<stream:stream to="eu1.pvp.net" xml:lang="en" version="1.0"
xmlns="jabber:client"
xmlns:stream="http://etherx.jabber.org/streams">
[IN]
<?xml version='1.0'?>
<stream:stream
xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams' id='3496705570' from='eu1.pvp.net' version='1.0'>
[IN]
<stream:features>
<mechanisms
xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>
<mechanism>X-Riot-RSO</mechanism>
<mechanism>X-Riot-RSO-PAS</mechanism>
</mechanisms>
</stream:features>
[OUT]
<auth mechanism="X-Riot-RSO-PAS"
xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
<rso_token>ey...</rso_token>
<pas_token>ey...</pas_token>
</auth>
[IN]
<success
xmlns='urn:ietf:params:xml:ns:xmpp-sasl'>1628397936
</success>
[OUT]