[SIP Beyond VoIP] Sylkserver - authentication against an IMAP server
Valentin Kleibel
valentin at vrvis.at
Tue Apr 7 16:40:11 CEST 2020
Hi,
Thanks for your comments on the code. We've done some work based on them.
> Unless you have a modified client like yours, this server add-on is kind of useless because it only works for you. We do not want to always send the password in clear text over the web socket, as you require. So if you build a client to use IMAP and you can as well build the server and maintain it yourself.
We totally agree that sending the plaintext password over ws is a
inferior solution if you use sip. unfortunately, to implement any other
authentication without even more changes, we need this. therefore we
create a configurable client and sylkrtc.js which by default sends ha1
but can be changed to send plain passwords. see patches
sylkrtc-ha1-conditional.patch and sylk-webrtc-ha1-conditional.patch.
Those don't change the default code path and can be used independently
of each other if you want to send ha1.
> Regarding the patch itself, it is blocking. If the IMAP server is not responding, the whole application is stuck. You should figure out an async way todo the IMAP authentication so that is non-blocking. If you do this, we may add this functionality to the main server code with some comments about where. To download the modified client.
>
We have also written a patch for a non-blocking imap authentication.
The authentication itself is in a separate auth.py which also
facilitates to implement other authentication methods.
What is your opinion on this approach?
Regards,
Valentin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sylkrtc-ha1-conditional.patch
Type: text/x-patch
Size: 758 bytes
Desc: not available
URL: <http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20200407/2dd8d9b3/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sylk-webrtc-ha1-conditional.patch
Type: text/x-patch
Size: 1366 bytes
Desc: not available
URL: <http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20200407/2dd8d9b3/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sylkserver-auth-imap-async.patch
Type: text/x-patch
Size: 8746 bytes
Desc: not available
URL: <http://lists.ag-projects.com/pipermail/sipbeyondvoip/attachments/20200407/2dd8d9b3/attachment-0002.bin>
More information about the SIPBeyondVoIP
mailing list