From a039ea38f248281bfb75c3c07aa315a031cc4899 Mon Sep 17 00:00:00 2001 From: Hivert Quentin Date: Thu, 12 Jun 2025 10:32:50 +0200 Subject: [PATCH] add logs --- SoObjects/SOGo/SOGoOpenIdSession.m | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/SoObjects/SOGo/SOGoOpenIdSession.m b/SoObjects/SOGo/SOGoOpenIdSession.m index 0c74692f7..2f9e43393 100644 --- a/SoObjects/SOGo/SOGoOpenIdSession.m +++ b/SoObjects/SOGo/SOGoOpenIdSession.m @@ -264,6 +264,8 @@ size_t curl_body_function(void *ptr, size_t size, size_t nmemb, void *buffer) NSLog(@"OpenId perform request: %@ %@", method, endpoint); NSLog(@"OpenId perform request, headers %@", headers); } + if(SOGoOpenIDDebugEnabled) + NSLog(@"OpenId perform request, body raw %@", body); curl_global_init(CURL_GLOBAL_SSL); curl = curl_easy_init(); @@ -283,7 +285,10 @@ size_t curl_body_function(void *ptr, size_t size, size_t nmemb, void *buffer) myBody[[body length]]='\0'; if(SOGoOpenIDDebugEnabled) - NSLog(@"OpenId perform request, body %s", myBody); + NSLog(@"OpenId perform request, myBodyTmp %s", myBodyTmp); + + if(SOGoOpenIDDebugEnabled) + NSLog(@"OpenId perform request, myBody %s", myBody); curl_easy_setopt(curl, CURLOPT_POST, 1); curl_easy_setopt(curl, CURLOPT_POSTFIELDS, [body bytes]); @@ -688,6 +693,9 @@ size_t curl_body_function(void *ptr, size_t size, size_t nmemb, void *buffer) else headers = [NSDictionary dictionaryWithObject: @"application/x-www-form-urlencoded" forKey: @"content-type"]; + if(SOGoOpenIDDebugEnabled) + NSLog(@"OpenId fetch token, form %@", form); + response = [self _performOpenIdRequest: location method: @"POST" headers: headers