Skip to content

Commit

Permalink
Fix oauth2 protected resource example
Browse files Browse the repository at this point in the history
  • Loading branch information
danielburger1337 committed Dec 30, 2024
1 parent 1683d4a commit 54ebdaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/client.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ function makeRequest(bool $retry = true, ?array $serverSupportedAlgorithms = nul
// REMEMBER: the server can also include it on a successfull response
$dpopFactory->storeNextNonceFromResponse($response, $request, $proof->jwk);

if ($response->getStatus() === 401) {
if (false === $retry || $response->getStatus() === 401) {
// the RP can tell you to use a different DPoP algorithm
$wwwAuthenticate = $request->getHeaderLine('WWW-Authenticate');
$supportedAlgorithms = Util::parseSupportedAlgorithmsFromHeader($wwwAuthenticate);
Expand Down

0 comments on commit 54ebdaf

Please sign in to comment.