Skip to content

Commit 4b03860

Browse files
fix: debug keycloak
1 parent a2c1795 commit 4b03860

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Diff for: api/src/Security/Http/Protection/ResourceResourceHandler.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function create(object $resource, UserInterface $owner, array $context =
3838
);
3939

4040
// create resource_set on OIDC server
41-
$this->securityAuthorizationClient->request('POST', 'authz/protection/resource_set', [
41+
$response = $this->securityAuthorizationClient->request('POST', 'authz/protection/resource_set', [
4242
'auth_bearer' => $this->getPAT(),
4343
'json' => [
4444
'name' => \sprintf('%s_%s', $shortName, $resource->getId()->__toString()),
@@ -48,6 +48,9 @@ public function create(object $resource, UserInterface $owner, array $context =
4848
'owner' => $owner->getUserIdentifier(),
4949
],
5050
]);
51+
if ($response->getStatusCode() !== 200) {
52+
dump($response->toArray(false));
53+
}
5154
}
5255

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

0 commit comments

Comments
 (0)