Commit Graph

268 Commits

Author SHA1 Message Date
Xavi Aracil
6287dde672 Added implementaiton of eddsa-2022 cryptosuite verifier 2023-05-29 11:14:48 +02:00
Xavi Aracil
f44a4a67bf Added tests for eddsa-2022 2023-05-29 11:13:29 +02:00
Xavi Aracil
ef5836ecbe Fixed proof in test json 2023-05-23 11:08:07 +02:00
Andy Miller (IMS)
8e9546db0f Fix json samples
Fixes #79

Updated ob3/simple-did-web-method.json and ob3/credential-status-revoked.json with fresh exports from Wellspring Portal.

I also gave the AchievementCredentials names that correspond to the json file names so they are easier to update if needed.

Once we get the BadgeConnect API working, we can probably update the tests to simply GET the credentials.
2023-05-23 10:18:46 +09:00
Xavi Aracil
09647272ff Merge pull request #75 from imsglc/amiller-ims-patch-2
Please consider updating danubetech dependencies
2023-05-22 15:42:09 +02:00
Andy Miller (IMS)
45734fa9d4 Add credentialStatus test
This uses the wellspring2022-portal app. If it ever breaks, the data was probably changed in the app.
2023-05-22 10:30:29 +09:00
Andy Miller
74182bf2fc Merge pull request #72 from imsglc/amiller-ims-patch-1
Update IssuerProbe.java
2023-05-21 10:18:46 +09:00
Andy Miller (IMS)
981398f418 Switch to using org and learner paths for did-web url 2023-05-16 16:27:57 +09:00
Andy Miller (IMS)
149af3ea5c Add a simple did:web method sample
Depends on wellspring 2022 portal app
2023-05-16 12:11:01 +09:00
Andy Miller (IMS)
0f839cc0c2 Fixed up a couple of steps in the did:web embedded proof probe 2023-05-16 10:36:57 +09:00
Andy Miller (IMS)
465ba7df55 Renamed did:key method resource 2023-05-16 10:35:56 +09:00
Andy Miller (IMS)
d90bb7245a Add a did:web method test 2023-05-16 10:35:07 +09:00
Andy Miller
50b5c39629 Please consider updating danubetech dependencies
The current versions work, but I use these more recent versions in the wellspring apps and I think it would be nice if we were in sync.
2023-05-15 16:46:07 +09:00
Andy Miller
bed81d538d Update IssuerProbe.java
The `issuer` is an instance of the `Profile` class which has an optional array of `IdentifierEntry` class, not `IdentityObject`. See https://github.com/1EdTech/openbadges-specification/blob/develop/ob_v3p0/common_credentials.lines#L129.
2023-05-15 05:33:21 +09:00
Xavi Aracil
f499ef32e9 Added did:web verification method 2023-03-22 10:49:42 +01:00
Xavi Aracil
8ba2925b78 Fixed tests 2023-03-03 13:53:42 +01:00
Xavi Aracil
34962fd631 Refresh of credential may fail. If so, continue with old credential 2023-02-28 16:19:17 -06:00
Xavi Aracil
2952fe6807 Set accept header for revocation list 2023-02-28 16:19:17 -06:00
Xavi Aracil
52f0fd4ed3 Defined REFRESH_SERVICE_MIME_TYPES 2023-02-28 16:19:17 -06:00
Xavi Aracil
98d86d556f Added context to cache 2023-02-10 10:12:40 +01:00
Xavi Aracil
a75917fe29 Added tests for context aliases and versioning 2023-02-10 10:12:27 +01:00
Xavi Aracil
0d583f175f Validate context against aliases and versioning 2023-02-10 10:12:08 +01:00
Xavi Aracil
433032c6c3 Added context aliases and versioning 2023-02-10 10:11:48 +01:00
Xavi Aracil
08c5671342 updated version 2023-02-09 13:32:52 +01:00
Xavi Aracil
6f2b840fc4 Renamed method 2023-01-09 13:52:08 +01:00
Xavi Aracil
be6891e857 Allow multiple proofs 2023-01-09 12:05:10 +01:00
Xavi Aracil
a13bcf8f11 Added a test for multiple proofs 2023-01-09 12:04:35 +01:00
Xavi Aracil
999b28b43d Added a holder for W3C's VC, with method for getting the array of proofs 2023-01-09 12:04:11 +01:00
Xavi Aracil
4abd45937c Move probes up to follow verification section in spec document 2023-01-05 14:30:25 +01:00
Xavi Aracil
f0cddf0906 more comment in a TODO 2023-01-05 13:15:50 +01:00
Xavi Aracil
6f5fea32ed Added probes for issuer 2023-01-05 13:15:47 +01:00
Xavi Aracil
d654b12919 Added probes for evidence 2023-01-05 13:15:05 +01:00
Xavi Aracil
1fe23b7278 Check required values for type attribute
added attributes for required type and achievement

return error instead of notRun
2023-01-05 13:14:59 +01:00
Xavi Aracil
677e547add Get credentialSchema node list using utility method 2023-01-04 12:27:31 +01:00
Xavi Aracil
38a6b2e6e7 Add cause's message to the resulting report 2023-01-04 12:20:11 +01:00
Andy Miller (IMS)
e446222784 Add a test of a mildly complex CLR 2022-12-29 13:27:26 -08:00
Andy Miller (IMS)
dd29a8f023 Switch to ConfigurableDocumentLoader 2022-12-29 13:26:50 -08:00
Xavi Aracil
de1bca76e3 Revert "Flatten recursively"
This reverts commit f95181db11405c0d3f88bbf78587bd83413a5efd.
2022-12-21 10:12:56 +01:00
Xavi Aracil
6372735105 Upgraded version 2022-12-21 09:52:14 +01:00
Xavi Aracil
d6a85ad00d Merge pull request #67 from imsglc/feature/open-badges-20
Feature/open badges 20
2022-12-21 09:50:32 +01:00
Andy Miller (IMS)
eb5cd65985 Add valid endorsement test 2022-12-20 13:00:26 -08:00
Andy Miller (IMS)
df646b502b Add endorsement test 2022-12-20 12:55:32 -08:00
Andy Miller (IMS)
043f4b6a25 Replace run(resource) override to inspect standalone endorsement 2022-12-20 12:54:59 -08:00
Xavi Aracil
1e51ac3909 Fixed valueOf: check external only if value is not null 2022-12-20 13:08:28 +01:00
Xavi Aracil
c4666c4913 Flatten recursively 2022-12-20 13:08:04 +01:00
Xavi Aracil
810bb023bc Check against null values 2022-12-20 13:07:45 +01:00
Xavi Aracil
0932ca87a8 Merge branch 'feature/open-badges-20' into dec22-release
# Conflicts:
#	inspector-util/src/main/java/org/oneedtech/inspect/util/spec/Specification.java
#	inspector-web/src/main/resources/validators.json
2022-12-19 11:03:20 +01:00
Markus Gylling
e73ac4b68c up version 2022-12-15 16:42:20 +01:00
Xavi Aracil
1677a0b359 Added a UriFactory for allowing local resources in testing 2022-12-15 15:41:24 +01:00
Xavi Aracil
e7de6c6ebc Added message about redirection 2022-12-15 13:33:41 +01:00
Xavi Aracil
682c9d9d4d Better report messages 2022-12-15 13:32:26 +01:00
Xavi Aracil
766228bbad Finished extension validation 2022-12-15 13:32:13 +01:00
Xavi Aracil
1818fdabf5 initial extension probe, only checks contexts 2022-12-15 12:44:59 +01:00
Xavi Aracil
727bd8194b Added extension tests 2022-12-14 08:14:33 +01:00
Xavi Aracil
3b335867fe Save loaded contexts in internal cache 2022-12-14 08:14:18 +01:00
Xavi Aracil
cb60fd11ed Added endorsement inspector for OB 2.0 2022-12-13 14:30:55 +01:00
Xavi Aracil
55ef973efe Fixed fetch condition 2022-12-13 13:06:50 +01:00
Xavi Aracil
419beae7ca Add resource to run context 2022-12-13 13:06:35 +01:00
Xavi Aracil
c7dee3bdf7 Endorsements validation 2022-12-13 10:46:34 +01:00
Xavi Aracil
e47061de8d Added more image validation tests 2022-12-12 18:26:16 +01:00
Xavi Aracil
59c96d68d1 Added image validation tests 2022-12-12 18:04:53 +01:00
Xavi Aracil
ed74e2a60d Added revocation list tests 2022-12-12 17:19:26 +01:00
Xavi Aracil
caea0b50f4 Added related validation test, fixing fullValidate 2022-12-12 16:14:18 +01:00
Xavi Aracil
8260d7e7aa Fixed rdf validation tests 2022-12-12 15:06:17 +01:00
Xavi Aracil
8daa897e81 Added expiration tests 2022-12-12 15:06:08 +01:00
Xavi Aracil
e8a6b33813 Added verification dependencies validation 2022-12-12 14:36:47 +01:00
Xavi Aracil
747a93e670 Added Rdf Type validation test 2022-12-12 14:08:44 +01:00
Xavi Aracil
de610f7f3e Added tests for validations 2022-12-12 13:02:57 +01:00
Xavi Aracil
6eb8b66560 Added issuer with compact iri test 2022-12-12 11:10:38 +01:00
Xavi Aracil
d852003526 Fix issuer url 2022-12-12 11:10:19 +01:00
Xavi Aracil
c7f4dc8afa Fixed regular expression validation 2022-12-12 10:41:04 +01:00
Xavi Aracil
e4da345869 Added test for assertion withou publick key 2022-12-12 10:40:12 +01:00
Xavi Aracil
48a3de0968 Added basic language test 2022-12-12 09:39:12 +01:00
Xavi Aracil
a4d8a1692f Added JWT signature verification 2022-12-09 14:27:09 +01:00
Xavi Aracil
dbee83068f Got verification object from graph 2022-12-09 12:27:48 +01:00
Xavi Aracil
1133628f5f Back to previous value 2022-12-09 12:27:37 +01:00
Xavi Aracil
52b94777ce Added revocation list probe to OB 2.0 2022-12-07 17:55:01 +01:00
Xavi Aracil
c96dd7726a Removed unused import 2022-12-07 17:41:14 +01:00
Xavi Aracil
288e67e166 Default return for non existent field is success 2022-12-07 17:41:02 +01:00
Xavi Aracil
4219785be4 Added revocation list for fetch 2022-12-07 17:40:08 +01:00
Xavi Aracil
3c094f53ef Fixed default allowed origins when the issuerId is not an url 2022-12-07 16:08:29 +01:00
Xavi Aracil
e1f9c31b7b Fixed badge url in test resource 2022-12-07 15:55:47 +01:00
Xavi Aracil
3f3276485d remove setter call with default boolean value 2022-12-07 15:27:25 +01:00
Xavi Aracil
7580a2c56b More validations and prerequisites 2022-12-06 15:44:15 +01:00
Xavi Aracil
746300ab42 Added basic jws test 2022-12-02 11:29:09 +01:00
Xavi Aracil
2492aa28f3 Set assertion property name for JWS 2022-12-02 11:29:00 +01:00
Xavi Aracil
550dde03f6 Generic property name for credential into jws 2022-12-02 11:28:40 +01:00
Xavi Aracil
d286347294 Added issuedon and expiration probes 2022-12-01 12:38:20 +01:00
Xavi Aracil
d334c0f143 Generic ExpirationProbe 2022-12-01 12:34:36 +01:00
Xavi Aracil
ce89968837 generic IssuanceProbe 2022-12-01 12:30:34 +01:00
Xavi Aracil
739facfe06 Fixed tests 2022-12-01 12:30:09 +01:00
Xavi Aracil
c53d6405c4 Cache context for faster tests 2022-12-01 12:30:01 +01:00
Xavi Aracil
d604f213be Added test with non-http issuer 2022-11-30 18:50:01 +01:00
Xavi Aracil
d6e0d85d2f Added issuer property validations 2022-11-30 18:49:31 +01:00
Xavi Aracil
92ad87c6bc Several ways to get the id 2022-11-30 18:48:56 +01:00
Xavi Aracil
dc0f501772 Gotten the right resource from context 2022-11-30 18:48:17 +01:00
Xavi Aracil
91efffa848 Validation probes moved to its own package 2022-11-30 12:45:54 +01:00
Xavi Aracil
60e0187052 Added image validation 2022-11-30 10:52:38 +01:00
Xavi Aracil
d3667e580c New validation probe for rdf types 2022-11-30 10:52:21 +01:00
Xavi Aracil
0d6d97cd4f Validate properties in Assertion 2022-11-29 18:06:36 +01:00