We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 759e689 commit 46ae341Copy full SHA for 46ae341
src/Controllers/VerifiableCredentials/CredentialIssuerCredentialController.php
@@ -100,6 +100,17 @@ public function credential(Request $request): Response
100
);
101
}
102
103
+ if (
104
+ ($flowType = $accessToken->getFlowTypeEnum()) === null ||
105
+ $flowType->isVciFlow() === false
106
+ ) {
107
+ return $this->routes->newJsonErrorResponse(
108
+ 'invalid_token',
109
+ 'Access token is not intended for verifiable credential issuance.',
110
+ 401,
111
+ );
112
+ }
113
+
114
// TODO mivanci Validate credential request
115
116
$credentialFormatId = $requestData[ClaimsEnum::Format->value] ?? null;
0 commit comments