- added log (#15777)

This commit is contained in:
Mohit Yadav 2024-04-02 18:39:48 +05:30 committed by GitHub
parent feb33a0cc2
commit b38b7e3231
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -371,6 +371,12 @@ public final class SecurityUtil {
if (credentials != null && credentials.getRefreshToken() != null) {
removeOrRenewOidcCredentials(request, client, credentials);
return Optional.of(credentials);
} else {
if (credentials == null) {
LOG.error("No credentials found against session. ID: {}", request.getSession().getId());
} else {
LOG.error("No refresh token found against session. ID: {}", request.getSession().getId());
}
}
return Optional.empty();
}