Commit Graph

23 Commits

Author SHA1 Message Date
jesopo 7b6a845927 don't infinitely loop SASLUserPass attempts on FAIL or ABORT 2021-09-19 21:34:57 +00:00
jesopo ab65e39ab9 handle ERR_SASLABORTED 2021-09-18 17:34:52 +00:00
jesopo d85f359293 SHA-1 scram name should be SHA1 (and fix typo in error rethrow) 2020-06-14 18:37:11 +01:00
jesopo 0921cb8086 allow ResponseOr to be shorthanded as a Set[IMatchResponse] 2020-04-27 01:28:46 +01:00
jesopo c25f6d2a00 SCRAM should take mechanisms as Enum values 2020-04-26 17:08:03 +01:00
jesopo f18efda31b isinstance for SASL types, so EXTERNAL doesn't have blank user/pass 2020-04-26 01:08:47 +01:00
jesopo 89c7ac15dd rename some matching Params, restructure matching 2020-04-21 21:40:46 +01:00
jesopo a187dd2175 SASL auth text should be wrapped at 400 bytes 2020-04-19 00:56:24 +01:00
jesopo 7232876a75 update ircstates to v0.9.0, use const RPL/ERR vars 2020-04-17 21:06:20 +01:00
jesopo c4009e1c07 on ERR_SASLFAIL, pop from matches 2020-04-10 21:37:26 +01:00
jesopo 3700ba4ab6 on RPL_SASLMECHS, we should still wait_for the ERR_SASLFAIL after it 2020-04-10 21:36:17 +01:00
jesopo 5da82e7d66 check for PLAIN should use `match[0]` not `match` 2020-04-10 21:36:03 +01:00
jesopo f70932ac44 move more CAP related stuff to CAPContext 2020-04-05 12:48:29 +01:00
jesopo afe9ec359d update ircstates to 0.8.2 2020-04-05 12:47:19 +01:00
jesopo 688418df04 dont tg.spawn() for each message, allow wait_for to read 2020-04-03 13:04:02 +01:00
jesopo 60e601aa81 implement SASL SCRAM 2020-04-02 22:37:51 +01:00
jesopo a4f5d8045f add numerics.py to translate names, remove Response(errors=) 2020-04-02 20:55:01 +01:00
jesopo 61f1cdba9d don't try SASL twice, try SASL on CAP NEW 2020-04-02 18:38:37 +01:00
jesopo d310dad471 add SALContext().from_params() 2020-04-02 18:17:00 +01:00
jesopo 03c71f6498 remove unneeded imports (thanks importchecker!) 2020-04-02 18:00:28 +01:00
jesopo f43cb75bfa move SASL logic out in to sasl.py.SASLContext 2020-04-02 17:56:44 +01:00
jesopo 971f49f4c7 move more sasl-related stuff out to sasl.py 2020-04-02 17:29:52 +01:00
jesopo 4f61b89012 add objects needed to denote SASL in ConnectionParams 2020-04-02 16:59:02 +01:00