File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -254,9 +254,16 @@ std::string RestCatalog::retrieveAccessToken() const
254254 }
255255 else
256256 {
257+ String encoded_auth_scope;
258+ String encoded_client_id;
259+ String encoded_client_secret;
260+ Poco::URI::encode (auth_scope, auth_scope, encoded_auth_scope);
261+ Poco::URI::encode (client_id, client_id, encoded_client_id);
262+ Poco::URI::encode (client_secret, client_secret, encoded_client_secret);
263+
257264 body = fmt::format (
258265 " grant_type=client_credentials&scope={}&client_id={}&client_secret={}" ,
259- auth_scope, client_id, client_secret );
266+ encoded_auth_scope, encoded_client_id, encoded_client_secret );
260267 body_size = body.size ();
261268 out_stream_callback = [&](std::ostream & os)
262269 {
You can’t perform that action at this time.
0 commit comments