Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
Marcus N #1
Member since Mar 2011 · 2 posts
Group memberships: Members
Show profile · Link to this post
Subject: Custom SASL mechanism
Is it possible to write your own SASL mechanism?

I have searched for a way to inreject my own mechanism but not found a way to do this.
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
yes this is possible. But you have to modify or extend your xmpp server for this and the library.
On the library side this is pretty easy. I suggest to study the code of the SASL Plain mechanism agsXMPP.Sasl.Plain.PlainMechanism.
Avatar
Marcus N #3
Member since Mar 2011 · 2 posts
Group memberships: Members
Show profile · Link to this post
Thanks for the fast reply.

Since this is for commercial use I will be using the Matrix sdk, posted in the wrong forum.

The server side changes are already done, its only the client side left.

Do i need to recompile the lib or can i just inject my own Mechanism somewhere at runtime?

Is agsXMPP.Sasl.Plain.PlainMechanism. implementation also valid for the Matrix SDK?
Avatar
Alex #4
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by Marcus N:
Do i need to recompile the lib or can i just inject my own Mechanism somewhere at runtime?
yes, there is currently no way to add new SASL mechanisms without modifications of the library sources.

Quote by Marcus N:
Is agsXMPP.Sasl.Plain.PlainMechanism. implementation also valid for the Matrix SDK?
the implementation is similar, but not the same.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS