Skip to content

Commit

Permalink
Merge branch 'feature/legacy-support' of https://github.com/pdsintero…
Browse files Browse the repository at this point in the history
…p/php-solid-auth into feature/legacy-support
  • Loading branch information
ylebre committed Jan 17, 2024
2 parents 56c7e26 + 5323632 commit 7a7a1ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/TokenGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,6 @@ private function makeJwkThumbprint($dpop): string
private function getJwks() {
$key = $this->config->getKeys()->getPublicKey();
$jwks = new Jwks($key);
return json_decode($jwks->__toString(), true);
return json_decode((string) $jwks, true);
}
}
3 changes: 3 additions & 0 deletions src/Utils/Bearer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
/**
* This class contains code to fetch the WebId from a request
* that is make in legacy mode (bearer token with pop)
*
* @ TODO: Make sure this code complies with the spec and validate the tokens properly;
* https://datatracker.ietf.org/doc/html/rfc7800
*/
class Bearer {

Expand Down

0 comments on commit 7a7a1ed

Please sign in to comment.