@@ -269,12 +269,12 @@ void PFXPetApi::addPet(const PFXPet &pfx_pet) {
269269 _passwordFlow.unlink ();
270270 _authFlow.unlink ();
271271 _credentialFlow.unlink ();
272- QStringList scope ;
273- scope .append (" write:pets" );
274- scope .append (" read:pets" );
275- auto token = _implicitFlow.getToken (scope .join (" " ));
276- if (token .isValid ())
277- input.headers .insert (" Authorization" , " Bearer " + token .getToken ());
272+ QStringList scope1 ;
273+ scope1 .append (" write:pets" );
274+ scope1 .append (" read:pets" );
275+ auto token1 = _implicitFlow.getToken (scope1 .join (" " ));
276+ if (token1 .isValid ())
277+ input.headers .insert (" Authorization" , " Bearer " + token1 .getToken ());
278278
279279 _latestWorker = new PFXHttpRequestWorker (this , _manager);
280280 _latestWorker->setTimeOut (_timeOut);
@@ -289,7 +289,7 @@ void PFXPetApi::addPet(const PFXPet &pfx_pet) {
289289 });
290290
291291 _latestInput = input;
292- _latestScope = scope ;
292+ _latestScope = scope1 ;
293293
294294
295295
@@ -477,12 +477,12 @@ void PFXPetApi::deletePet(const qint64 &pet_id, const ::test_namespace::Optional
477477 _passwordFlow.unlink ();
478478 _authFlow.unlink ();
479479 _credentialFlow.unlink ();
480- QStringList scope ;
481- scope .append (" write:pets" );
482- scope .append (" read:pets" );
483- auto token = _implicitFlow.getToken (scope .join (" " ));
484- if (token .isValid ())
485- input.headers .insert (" Authorization" , " Bearer " + token .getToken ());
480+ QStringList scope1 ;
481+ scope1 .append (" write:pets" );
482+ scope1 .append (" read:pets" );
483+ auto token1 = _implicitFlow.getToken (scope1 .join (" " ));
484+ if (token1 .isValid ())
485+ input.headers .insert (" Authorization" , " Bearer " + token1 .getToken ());
486486
487487 _latestWorker = new PFXHttpRequestWorker (this , _manager);
488488 _latestWorker->setTimeOut (_timeOut);
@@ -497,7 +497,7 @@ void PFXPetApi::deletePet(const qint64 &pet_id, const ::test_namespace::Optional
497497 });
498498
499499 _latestInput = input;
500- _latestScope = scope ;
500+ _latestScope = scope1 ;
501501
502502
503503
@@ -672,12 +672,12 @@ void PFXPetApi::findPetsByStatus(const QList<QString> &status) {
672672 _passwordFlow.unlink ();
673673 _authFlow.unlink ();
674674 _credentialFlow.unlink ();
675- QStringList scope ;
676- scope .append (" write:pets" );
677- scope .append (" read:pets" );
678- auto token = _implicitFlow.getToken (scope .join (" " ));
679- if (token .isValid ())
680- input.headers .insert (" Authorization" , " Bearer " + token .getToken ());
675+ QStringList scope1 ;
676+ scope1 .append (" write:pets" );
677+ scope1 .append (" read:pets" );
678+ auto token1 = _implicitFlow.getToken (scope1 .join (" " ));
679+ if (token1 .isValid ())
680+ input.headers .insert (" Authorization" , " Bearer " + token1 .getToken ());
681681
682682 _latestWorker = new PFXHttpRequestWorker (this , _manager);
683683 _latestWorker->setTimeOut (_timeOut);
@@ -692,7 +692,7 @@ void PFXPetApi::findPetsByStatus(const QList<QString> &status) {
692692 });
693693
694694 _latestInput = input;
695- _latestScope = scope ;
695+ _latestScope = scope1 ;
696696
697697
698698
@@ -877,12 +877,12 @@ void PFXPetApi::findPetsByTags(const QList<QString> &tags) {
877877 _passwordFlow.unlink ();
878878 _authFlow.unlink ();
879879 _credentialFlow.unlink ();
880- QStringList scope ;
881- scope .append (" write:pets" );
882- scope .append (" read:pets" );
883- auto token = _implicitFlow.getToken (scope .join (" " ));
884- if (token .isValid ())
885- input.headers .insert (" Authorization" , " Bearer " + token .getToken ());
880+ QStringList scope1 ;
881+ scope1 .append (" write:pets" );
882+ scope1 .append (" read:pets" );
883+ auto token1 = _implicitFlow.getToken (scope1 .join (" " ));
884+ if (token1 .isValid ())
885+ input.headers .insert (" Authorization" , " Bearer " + token1 .getToken ());
886886
887887 _latestWorker = new PFXHttpRequestWorker (this , _manager);
888888 _latestWorker->setTimeOut (_timeOut);
@@ -897,7 +897,7 @@ void PFXPetApi::findPetsByTags(const QList<QString> &tags) {
897897 });
898898
899899 _latestInput = input;
900- _latestScope = scope ;
900+ _latestScope = scope1 ;
901901
902902
903903
@@ -1089,12 +1089,12 @@ void PFXPetApi::updatePet(const PFXPet &pfx_pet) {
10891089 _passwordFlow.unlink ();
10901090 _authFlow.unlink ();
10911091 _credentialFlow.unlink ();
1092- QStringList scope ;
1093- scope .append (" write:pets" );
1094- scope .append (" read:pets" );
1095- auto token = _implicitFlow.getToken (scope .join (" " ));
1096- if (token .isValid ())
1097- input.headers .insert (" Authorization" , " Bearer " + token .getToken ());
1092+ QStringList scope1 ;
1093+ scope1 .append (" write:pets" );
1094+ scope1 .append (" read:pets" );
1095+ auto token1 = _implicitFlow.getToken (scope1 .join (" " ));
1096+ if (token1 .isValid ())
1097+ input.headers .insert (" Authorization" , " Bearer " + token1 .getToken ());
10981098
10991099 _latestWorker = new PFXHttpRequestWorker (this , _manager);
11001100 _latestWorker->setTimeOut (_timeOut);
@@ -1109,7 +1109,7 @@ void PFXPetApi::updatePet(const PFXPet &pfx_pet) {
11091109 });
11101110
11111111 _latestInput = input;
1112- _latestScope = scope ;
1112+ _latestScope = scope1 ;
11131113
11141114
11151115
@@ -1220,12 +1220,12 @@ void PFXPetApi::updatePetWithForm(const qint64 &pet_id, const ::test_namespace::
12201220 _passwordFlow.unlink ();
12211221 _authFlow.unlink ();
12221222 _credentialFlow.unlink ();
1223- QStringList scope ;
1224- scope .append (" write:pets" );
1225- scope .append (" read:pets" );
1226- auto token = _implicitFlow.getToken (scope .join (" " ));
1227- if (token .isValid ())
1228- input.headers .insert (" Authorization" , " Bearer " + token .getToken ());
1223+ QStringList scope1 ;
1224+ scope1 .append (" write:pets" );
1225+ scope1 .append (" read:pets" );
1226+ auto token1 = _implicitFlow.getToken (scope1 .join (" " ));
1227+ if (token1 .isValid ())
1228+ input.headers .insert (" Authorization" , " Bearer " + token1 .getToken ());
12291229
12301230 _latestWorker = new PFXHttpRequestWorker (this , _manager);
12311231 _latestWorker->setTimeOut (_timeOut);
@@ -1240,7 +1240,7 @@ void PFXPetApi::updatePetWithForm(const qint64 &pet_id, const ::test_namespace::
12401240 });
12411241
12421242 _latestInput = input;
1243- _latestScope = scope ;
1243+ _latestScope = scope1 ;
12441244
12451245
12461246
@@ -1351,12 +1351,12 @@ void PFXPetApi::uploadFile(const qint64 &pet_id, const ::test_namespace::Optiona
13511351 _passwordFlow.unlink ();
13521352 _authFlow.unlink ();
13531353 _credentialFlow.unlink ();
1354- QStringList scope ;
1355- scope .append (" write:pets" );
1356- scope .append (" read:pets" );
1357- auto token = _implicitFlow.getToken (scope .join (" " ));
1358- if (token .isValid ())
1359- input.headers .insert (" Authorization" , " Bearer " + token .getToken ());
1354+ QStringList scope1 ;
1355+ scope1 .append (" write:pets" );
1356+ scope1 .append (" read:pets" );
1357+ auto token1 = _implicitFlow.getToken (scope1 .join (" " ));
1358+ if (token1 .isValid ())
1359+ input.headers .insert (" Authorization" , " Bearer " + token1 .getToken ());
13601360
13611361 _latestWorker = new PFXHttpRequestWorker (this , _manager);
13621362 _latestWorker->setTimeOut (_timeOut);
@@ -1371,7 +1371,7 @@ void PFXPetApi::uploadFile(const qint64 &pet_id, const ::test_namespace::Optiona
13711371 });
13721372
13731373 _latestInput = input;
1374- _latestScope = scope ;
1374+ _latestScope = scope1 ;
13751375
13761376
13771377
0 commit comments