Skip to content

Commit

Permalink
fix: debug keycloak
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentchalamon committed Jan 10, 2025
1 parent a2c1795 commit 4b03860
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion api/src/Security/Http/Protection/ResourceResourceHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function create(object $resource, UserInterface $owner, array $context =
);

// create resource_set on OIDC server
$this->securityAuthorizationClient->request('POST', 'authz/protection/resource_set', [
$response = $this->securityAuthorizationClient->request('POST', 'authz/protection/resource_set', [
'auth_bearer' => $this->getPAT(),
'json' => [
'name' => \sprintf('%s_%s', $shortName, $resource->getId()->__toString()),
Expand All @@ -48,6 +48,9 @@ public function create(object $resource, UserInterface $owner, array $context =
'owner' => $owner->getUserIdentifier(),
],
]);
if ($response->getStatusCode() !== 200) {
dump($response->toArray(false));
}
}

public function delete(object $resource, UserInterface $owner, array $context = []): void
Expand Down

0 comments on commit 4b03860

Please sign in to comment.