diff --git a/examples/sso.php b/examples/sso.php index e5d3892..a8d7111 100644 --- a/examples/sso.php +++ b/examples/sso.php @@ -6,10 +6,6 @@ require __DIR__."/requires.inc.php" ; - echo '
' ;
-
-    print_r($_SESSION) ;
-
     if ( isset($_GET['logout']) ) unset($_SESSION['ssoToken']) ;
 
     // Create the client
@@ -50,13 +46,11 @@
 
     echo '
' ; - print_r($client->config('accessTokens')) ; - try { // Now you can call SSO only methods: echo '

getUserProfile

' ; $profile = $client->getUserProfile(); - var_dump($profile); + echo '
'.print_r($profile,true ).'
' ; } catch ( \Exception $e ) { echo '
' ;
             echo $e->getMessage() ;
@@ -67,7 +61,7 @@
         $id = 5679881 ;
         echo '

getUserPermissionOnObject([id => '.$id.'])

' ; $permissions = $client->getUserPermissionOnObject(['id' => $id]); - var_dump($permissions); + echo '
'.print_r($permissions,true ).'
' ; } catch ( \Exception $e ) { echo '
' ;
             echo $e->getMessage() ;
diff --git a/src/Sitra/ApiClient/ApidaeSerializer.php b/src/Sitra/ApiClient/ApidaeSerializer.php
index 367e8ab..6b00d3d 100644
--- a/src/Sitra/ApiClient/ApidaeSerializer.php
+++ b/src/Sitra/ApiClient/ApidaeSerializer.php
@@ -131,9 +131,7 @@ protected function prepareRequest(CommandInterface $command, RequestInterface $r
         }
         elseif ( $scope && $scope == AuthenticationSubscriber::SSO_SCOPE )
         {
-            echo __METHOD__.':'.__LINE__.':'.$operation->getName()."\n" ;
             $token = $this->clientApi->getAccessToken($scope) ;
-            echo __METHOD__.':'.__LINE__ ;
             $request = $request->withHeader(
                 'Authorization',
                 'Bearer ' . $this->clientApi->getAccessToken($scope)