| 45 | Each configuration's `format` is one the issuer supports, with the members its profile requires (`credential_definition.type` for `jwt_vc_json`, `vct` for `dc+sd-jwt`); `credential_metadata` `display` (one object per language) and `claims` (each `path` a non-empty claims path pointer; a `mandatory` claim always included) (§12.2.4, A.1.1.2, A.3.2, B.2). | Met | `ModuleConfig::findFaultInVciCredentialConfiguration()` refuses, where the configurations become scopes (`getVciScopes()`) and before the Credential Issuer metadata is built (`CredentialIssuerMetadataService`), a configuration whose format the issuer can not issue, one without `vct` (`dc+sd-jwt`) or `credential_definition.type` (`jwt_vc_json`, and `vc+sd-jwt`, which issues it as its `type`), display objects which are not non-empty objects one with a name for each language, an empty `credential_metadata`, `claims` or `display` at the top level (the pre-final layout), and claims descriptions against Appendix B (`ClaimsDescriptionValidator`, shared with row 11); the Credential Endpoint does not issue under such a configuration either (`server_error`), and the configuration overview names the fault. A configuration with a `mandatory` claim nothing writes, neither the issuer itself (`CredentialClaimLocator::ISSUER_WRITTEN_CLAIM_PATHS`, as `credentialSubject.id`) nor an attribute mapped to it or to a claim around or inside it (`vci_user_attribute_to_credential_claim_path_map`, read where the format puts the mapped value), is refused the same way. At issuance every mandatory claim the issuer does not write is judged by what the mapping wrote, where the format puts it in the credential, and a user whose attributes leave one out is refused with `credential_request_denied` (`CredentialIssuerCredentialController`). In both checks a pointer with a null or an index is judged by the members before it, and one which starts with one names nothing the credential could hold. | `ModuleConfigTest`: `testRefusesACredentialConfigurationWhichCanNotBeIssuedAsItStands`, `testAcceptsACredentialConfigurationWhichCanBeIssuedAsItStands`, `testRefusesAConfigurationWithAMandatoryClaimNothingWrites`, `testAcceptsAConfigurationWhoseMandatoryClaimsAreWritten`; `CredentialIssuerMetadataServiceTest::testPublishesNothingWhileACredentialConfigurationCanNotBeIssued`; `CredentialIssuerCredentialControllerTest`: `testRefusesToIssueUnderAConfigurationWhichCanNotBeIssuedAsItStands`, `testRefusesAUserWithoutTheAttributeOfAMandatoryClaim`, `testRefusesAMandatoryClaimWhichTheMappingsAroundOrInsideItLeaveOut`, `testJudgesAMandatoryPointerToArrayElementsByTheMembersBeforeIt`, `testComparesAMandatoryClaimWithWhereTheFormatPutsTheMappedAttribute`, `testIssuesAMandatoryClaimFromWhicheverAttributeTheUserHas`, `testDoesNotJudgeAMandatoryClaimTheIssuerWrites`, `testTheIssuerWrittenClaimPathsListEveryClaimTheIssuerWrites`; `CredentialClaimLocatorTest`; `VciOverviewBuilderTest::testFlagsUnsupportedCredentialFormat`. |
0 commit comments