Commit bef7cfc7 authored by François Grisez's avatar François Grisez

Add more debug log around authentication

parent 78b6fa6c
Pipeline #8506 passed with stages
in 36 minutes and 56 seconds
......@@ -189,6 +189,7 @@ void FlexisipAuthModule::processResponse(FlexisipAuthStatus &as, const auth_resp
}
switch (result) {
case PASSWORD_FOUND: {
LOGD("password found for '%s' user, realm=%s", as.user(), as.realm());
string algo = ar.ar_algorithm ? ar.ar_algorithm : "MD5";
if (find(as.usedAlgo().cbegin(), as.usedAlgo().cend(), algo) == as.usedAlgo().cend()) {
onError(as);
......@@ -203,12 +204,14 @@ void FlexisipAuthModule::processResponse(FlexisipAuthStatus &as, const auth_resp
break;
}
case PASSWORD_NOT_FOUND:
LOGD("password not found for '%s' user, realm=%s", as.user(), as.realm());
as.status(403);
as.phrase("Forbidden");
as.response(nullptr);
finish(as);
break;
case AUTH_ERROR:
LOGD("password fetching has failed for '%s' user, realm=%s", as.user(), as.realm());
onError(as);
break;
case PENDING:
......
Subproject commit 290846f1df19f9dce8965c4f5781ecc26a4bf727
Subproject commit f0e76eb5fbca463a1fa62d1a135b62275347f3ef
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment