File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed
src/Controllers/VerifiableCredentials Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -677,6 +677,8 @@ $config = [
677677 // Sample for 'dc+sd-jwt' format without notes about required and optional fields.
678678 'ResearchAndScholarshipCredentialDcSdJwt' => [
679679 ClaimsEnum::Format->value => CredentialFormatIdentifiersEnum::DcSdJwt->value,
680+ // In earlier drafts it was vc+sd-jwt.
681+ //ClaimsEnum::Format->value => CredentialFormatIdentifiersEnum::VcSdJwt->value,
680682 ClaimsEnum::Scope->value => 'ResearchAndScholarshipCredentialDcSdJwt',
681683 ClaimsEnum::Display->value => [
682684 [
Original file line number Diff line number Diff line change @@ -41,9 +41,20 @@ public function configuration(): Response
4141 $ signer = $ this ->moduleConfig ->getProtocolSigner ();
4242
4343 $ credentialConfigurationsSupported = $ this ->moduleConfig ->getCredentialConfigurationsSupported ();
44- $ credentialConfigurationsSupported [ClaimsEnum::CredentialSigningAlgValuesSupported->value ] = [
45- $ signer ->algorithmId (),
46- ];
44+
45+ // For now, we only support one credential signing algorithm.
46+ foreach ($ credentialConfigurationsSupported as $ credentialConfigurationId => $ credentialConfiguration ) {
47+ // Draft 17
48+ $ credentialConfiguration [ClaimsEnum::CredentialSigningAlgValuesSupported->value ] = [
49+ $ signer ->algorithmId (),
50+ ];
51+ // Earlier drafts
52+ // TODO mivanci Delete CryptographicSuitesSupported once we are on the final draft.
53+ $ credentialConfiguration [ClaimsEnum::CryptographicSuitesSupported->value ] = [
54+ $ signer ->algorithmId (),
55+ ];
56+ $ credentialConfigurationsSupported [$ credentialConfigurationId ] = $ credentialConfiguration ;
57+ }
4758
4859 $ configuration = [
4960 ClaimsEnum::CredentialIssuer->value => $ this ->moduleConfig ->getIssuer (),
You can’t perform that action at this time.
0 commit comments