Skip to content

Commit

Permalink
fix connection by idp
Browse files Browse the repository at this point in the history
  • Loading branch information
aynsix committed Oct 2, 2023
1 parent 49863db commit b8759b4
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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'
]
]);

Expand Down

0 comments on commit b8759b4

Please sign in to comment.