diff --git a/lib/Alchemy/Phrasea/PhraseanetService/Controller/PSExposeController.php b/lib/Alchemy/Phrasea/PhraseanetService/Controller/PSExposeController.php index f0a9f15f49..2b46e0b083 100644 --- a/lib/Alchemy/Phrasea/PhraseanetService/Controller/PSExposeController.php +++ b/lib/Alchemy/Phrasea/PhraseanetService/Controller/PSExposeController.php @@ -202,7 +202,8 @@ public function listPublicationAction(PhraseaApplication $app, Request $request) try { $provider = $this->getAuthenticationProviders()->get($providerId); if ($provider->getType() == 'PsAuth') { - $session->set($passSessionName, $provider->getAccessToken()); + + $session->set($passSessionName, ['access_token' => $provider->getAccessToken()]); $session->set($this->getLoginSessionName($exposeName), $provider->getUserName()); } } catch(\Exception $e) { @@ -1385,7 +1386,7 @@ private function getTokenByCredential(Client $oauthClient, array $exposeConfigur 'client_id' => $exposeConfiguration['expose_client_id'], 'client_secret' => $exposeConfiguration['expose_client_secret'], 'grant_type' => 'client_credentials', - 'scope' => 'publish' +// 'scope' => 'publish' ] ]);