Repository navigation
Add support for SASL EXTERNAL - #352
Conversation
|
I can successfully login with this code, however the GUI "login method" dropdown doesn't seem to be updated yet. Also, I cannot join channels, but this may be due to the non-standard setup of the specific internal server. |
Indeed, I forgot. Done.
Yeah, doesn't seem related |
|
Great work, thanks for digging into this! |
| <widget name="login_password_entry"/> | ||
| <widget name="remember_login_password_check_button"/> | ||
| <widget name="login_cert_file_chooser_button"/> | ||
| <widget name="client_cert_file_chooser_button"/> |
There was a problem hiding this comment.
The client_cert name is coufusing, how about rename the login_cert to ecdsa_cert and this to another better name? such as sasl_external_cert?
There was a problem hiding this comment.
I agree, but I wanted to keep the names here consistent with the name already in use in the config for ecdsa. Should I also change login.certificate to something like login.ecdsa_certificate?
There was a problem hiding this comment.
Yes, we can add a new confval like login.ecdsa_certificate, but keep it compatible with the old login.certificate confval.
| } | ||
| g_tls_connection_set_certificate(G_TLS_CONNECTION(tls_conn), cert); | ||
| LOG_FR("Using client TLS certificate"); | ||
| } |
There was a problem hiding this comment.
I thinks this is why we have to configure cert in server section? Keep status quo is fine. We can expose a SIRC_EVNET in future.
Closes GH-246.
Tested on Ergo.Chat.
This might be a little confusing, as it requires a
methodconfigured in theusersection of the config, and thecertificateconfigured in theserversection. (Though it works with only the latter on some servers, but this is called CertFP, not SASL EXTERNAL.)I was not able to do otherwise without refactoring all the configuration handling.
Additionally, the reason for adding this new
server->certificatefield is that this is a TLS cert, not an ECDSA cert like the existinguser->certificatefield. (btw, ECDSA authentication is deprecated by IRCv3 (including the original author))