Skip to content

Commit d907d3e

Browse files
committed
[43] Report unknown bearer token as INFO level message
1 parent 1d206ce commit d907d3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/common.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ namespace irods::http
353353

354354
if (found_token) {
355355
if (token_expired) {
356-
logging::error("{}: Session for bearer token [{}] has expired.", __func__, bearer_token);
356+
logging::info("{}: Session for bearer token [{}] has expired.", __func__, bearer_token);
357357
return {.response = fail(status_type::unauthorized)};
358358
}
359359

@@ -394,7 +394,7 @@ namespace irods::http
394394
}
395395

396396
if (json_res.empty()) {
397-
logging::error("{}: Could not find bearer token matching [{}].", __func__, bearer_token);
397+
logging::info("{}: Could not find bearer token matching [{}].", __func__, bearer_token);
398398
return {.response = fail(status_type::unauthorized)};
399399
}
400400

@@ -409,7 +409,7 @@ namespace irods::http
409409
}
410410

411411
logging::debug("{}: No [openid_connect] stanza found in server configuration.", __func__);
412-
logging::error("{}: Could not find bearer token matching [{}].", __func__, bearer_token);
412+
logging::info("{}: Could not find bearer token matching [{}].", __func__, bearer_token);
413413
return {.response = fail(status_type::unauthorized)};
414414
} // resolve_client_identity
415415

0 commit comments

Comments
 (0)