aioxmpp icon indicating copy to clipboard operation
aioxmpp copied to clipboard

how to create `SASLProvider` for multiple token based sasl ?

Open Kavan72 opened this issue 4 years ago • 3 comments

like;-

<auth mechanism="X-Auth" xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
    <user_token>sometokenhere</user_token>
    <data_token>sometokenhere</data_token>
</auth>

Kavan72 avatar Mar 08 '21 19:03 Kavan72

That is not how normal SASL works. Is there any internet standard where this is specified?

horazont avatar Mar 08 '21 19:03 horazont

nope, i've found this on pc game call warface. is this possible too create custom SASLProvider for this scenario ?

Kavan72 avatar Mar 08 '21 20:03 Kavan72

No. This is not SASL conformant, hence, you cannot write a SASL implementation.

You could still subclass aioxmpp.security_layer.SASLProvider and mimic its interface and see how far you get with that. However, this is no configuration which will be supported in any way.

horazont avatar Mar 08 '21 20:03 horazont