File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 77#include < Poco/Net/HTTPSClientSession.h>
88#include < Poco/StreamCopier.h>
99#include < fstream>
10+ #include < Common/logger_useful.h>
1011
1112
1213namespace DB
@@ -27,8 +28,8 @@ JWKSType JWKSClient::getJWKS()
2728
2829 if (diff < refresh_timeout)
2930 {
30- jwt::jwks <jwt::traits::kazuho_picojson> result (cached_jwks );
31- return result ;
31+ LOG_DEBUG ( getLogger ( " JWKSProvider " ), " Returning cached JWKS " );
32+ return cached_jwks ;
3233 }
3334
3435 Poco::Net::HTTPResponse response;
@@ -56,6 +57,8 @@ JWKSType JWKSClient::getJWKS()
5657 Poco::StreamCopier::copyToString (response_stream, response_string);
5758 }
5859
60+ LOG_DEBUG (getLogger (" JWKSProvider" ), " Response from JWKS server:\n {}" , response_string);
61+
5962 last_request_send = std::chrono::high_resolution_clock::now ();
6063
6164 JWKSType parsed_jwks;
You can’t perform that action at this time.
0 commit comments