lizmat / IRC-Client

Raku module for building IRC (Internet Relay Chat) clients
Artistic License 2.0
15 stars 8 forks source link

Is SASL authentication supported? #65

Open melezhik opened 2 years ago

melezhik commented 2 years ago

Hi! I am using the module passing user and password, assuming those ones are used for SASL authentication. However I get the following error:

https://gist.github.com/melezhik/a287c22ccb74cb5af87c7022bfefcefb#gistcomment-3949924

The same SASL authentication for the same user and password works fine by using irssi client

melezhik commented 2 years ago
melezhik | Irc::Client seems does not do SASL - https://github.com/lizmat/IRC-Client/issues/65
-- | --
17:09 | melezhik | I ended up spinning ztc proxy on my digital ocean droplet
17:09 | lizmat | melezhik: so how did you fix / work around it ?
17:09 | lizmat | ah. ok, hack around...
17:10 | melezhik | so that raku code talks to ztc proxy
17:10 | melezhik | and this one in turn is capable to implement SASL thing
17:10 | melezhik | yes, it's a hack, but looks like right now I don't have any better option
17:11 | melezhik | this is about authentication - https://github.com/lizmat/IRC-Client/blob/main/lib/IRC/Client.rakumod#L204-L206
17:11 | melezhik | not about SASL
17:11 |   | nine left
17:11 | melezhik | I used password/users btw to authenticate against my localhost ztc proxy
17:12 | melezhik | ztc -> znc
17:12 | melezhik | https://wiki.znc.in/ZNC
17:13 | melezhik | the problem with digital oceans IPs it that libera irc "does not like" them and enforce SASL authentication for them
melezhik commented 1 year ago

Looks like it is not supported, so I ended up spinning up znc bouncer which does support sasl