Skip to content

Commit

Permalink
merge
Browse files Browse the repository at this point in the history
  • Loading branch information
damikael committed May 8, 2023
2 parents ac44e3c + daaa522 commit 8cd1734
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/ResponseHandlerEncryptSign.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public function sendResponse($redirect_uri, $data, $state) {
$aud = $redirect_uri;
$jwk_pem = TOKEN_PRIVATE_KEY;

$secret = $this->config['clients'][$client_id]['client_secret'];
$secret = $this->config['client_secret'];
$data = $this->makeJWE($data, $exp_time, $iss, $aud, $secret);

$signedDataToken = $this->makeJWS($data, $exp_time, $iss, $aud, $jwk_pem);
Expand Down
2 changes: 1 addition & 1 deletion lib/ResponseHandlerSignEncrypt.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public function sendResponse($redirect_uri, $data, $state) {

$data = $this->makeJWS($data, $exp_time, $iss, $aud, $jwk_pem);

$secret = $this->config['clients'][$client_id]['client_secret'];
$secret = $this->config['client_secret'];
$encryptedDataToken = $this->makeJWE($data, $exp_time, $iss, $aud, $secret);

echo "<input type=\"hidden\" name=\"data\" value=\"".$encryptedDataToken."\" />";
Expand Down

0 comments on commit 8cd1734

Please sign in to comment.