@@ -293,8 +293,6 @@ void QFieldCloudConnection::login()
293
293
{
294
294
emit loginFailed ( tr ( " Session expired" ) );
295
295
}
296
-
297
- qInfo () << " Error reply content " << rawReply->readAll ();
298
296
}
299
297
else
300
298
{
@@ -611,8 +609,6 @@ void QFieldCloudConnection::setAuthenticationDetails( QNetworkRequest &request )
611
609
config.setConfig ( " qfieldcloud-sso-id" , providerId );
612
610
QgsApplication::instance ()->authManager ()->storeAuthenticationConfig ( config, true );
613
611
614
- qInfo () << " Stored OAuth2 configuration " << json.toJson ();
615
-
616
612
mProviderConfigId = config.id ();
617
613
QSettings ().setValue ( QStringLiteral ( " /QFieldCloud/providerConfigId" ), mProviderConfigId );
618
614
emit providerConfigurationChanged ();
@@ -624,10 +620,7 @@ void QFieldCloudConnection::setAuthenticationDetails( QNetworkRequest &request )
624
620
providerId = config.config ( " qfieldcloud-sso-id" );
625
621
}
626
622
627
- if ( !QgsApplication::instance ()->authManager ()->updateNetworkRequest ( request, mProviderConfigId ) )
628
- {
629
- qInfo () << " Authentication network request updated failed" ;
630
- }
623
+ QgsApplication::instance ()->authManager ()->updateNetworkRequest ( request, mProviderConfigId );
631
624
request.setRawHeader ( " X-QFC-IDP-ID" , providerId.toLatin1 () );
632
625
633
626
const QList<QNetworkCookie> cookies = QgsNetworkAccessManager::instance ()->cookieJar ()->cookiesForUrl ( mUrl );
@@ -637,8 +630,6 @@ void QFieldCloudConnection::setAuthenticationDetails( QNetworkRequest &request )
637
630
request.setRawHeader ( " X-CSRFToken" , match->value () );
638
631
request.setRawHeader ( " Referer" , mUrl .toLatin1 () );
639
632
}
640
-
641
- qInfo () << " Headers " << request.headers ().toListOfPairs ();
642
633
}
643
634
}
644
635
0 commit comments