Connect to XMPP server using SASL ANONYMOUS in c#
Question
I want to connect to an XMPP server using SASL ANONYMOUS.
I can use any library that is available for commercial use.
Any advice on how to do this and what library to use?
I've looked into the documentation of some libraries (agsXMPP and jabber.net) and couldn't figure out how to do any anonymous connection on either.
Thanks!
Solution
in the OnSaslStart event you can select the Sasl anonymous mechanism
private void XmppCon_OnSaslStart(object sender, SaslEventArgs args)
{
args.Auto = false;
Mechanism.GetMechanismName(MechanismType.ANONYMOUS);
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow