Skip to content

Commit 7a7a1ed

Browse files
committed
Merge branch 'feature/legacy-support' of https://github.com/pdsinterop/php-solid-auth into feature/legacy-support
2 parents 56c7e26 + 5323632 commit 7a7a1ed

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/TokenGenerator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,6 @@ private function makeJwkThumbprint($dpop): string
210210
private function getJwks() {
211211
$key = $this->config->getKeys()->getPublicKey();
212212
$jwks = new Jwks($key);
213-
return json_decode($jwks->__toString(), true);
213+
return json_decode((string) $jwks, true);
214214
}
215215
}

src/Utils/Bearer.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@
2222
/**
2323
* This class contains code to fetch the WebId from a request
2424
* that is make in legacy mode (bearer token with pop)
25+
*
26+
* @ TODO: Make sure this code complies with the spec and validate the tokens properly;
27+
* https://datatracker.ietf.org/doc/html/rfc7800
2528
*/
2629
class Bearer {
2730

0 commit comments

Comments
 (0)