Add re authentication tests

Summary: related to T12015

Reviewers: ivica

Reviewed By: ivica

Subscribers: miljen, iljazovic

Differential Revision: https://repo.mireo.local/D27436
This commit is contained in:
Korina Šimičević
2024-01-19 09:26:54 +01:00
parent 1485d5ec8b
commit d7d0b4c239
6 changed files with 337 additions and 75 deletions

View File

@@ -45,6 +45,9 @@ public:
}
void perform() {
if (_auth.method().empty())
return;
auto auth_step = auth_step_e::client_initial;
return _auth.async_auth(
auth_step, "",
@@ -55,7 +58,7 @@ public:
void perform(decoders::auth_message auth_message) {
if (_auth.method().empty())
return on_auth_fail(
"Unexpected AUTH received.",
"Unexpected AUTH received",
disconnect_rc_e::protocol_error
);