Commit Graph

233 Commits

Author SHA1 Message Date
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
Xavi Aracil
1cc64d2ae9 Basic validation of nodes which are not Id 2022-11-29 11:24:32 +01:00
Xavi Aracil
2f11941ebd Pass node to reportForNonExistentProperty 2022-11-28 15:03:21 +01:00
Xavi Aracil
4267423273 Added validations by type 2022-11-28 14:22:15 +01:00
Xavi Aracil
7cd9103001 Two type of generic property probes, depending of the type of validations 2022-11-28 14:17:10 +01:00
Xavi Aracil
521cce5dd4 Added invalid type test 2022-11-25 14:27:44 +01:00
Xavi Aracil
5cb232ea5b Added invalid context test 2022-11-25 14:09:17 +01:00
Xavi Aracil
c72d1de7f4 Generic ContextPropertyProbe 2022-11-25 13:56:39 +01:00
Xavi Aracil
2560281420 Moved getContext to CredentialEnum 2022-11-25 13:56:19 +01:00
Xavi Aracil
c88f776552 Removed unused imports 2022-11-25 13:55:55 +01:00
Xavi Aracil
f4f44f61ff Return empty list when node is an object 2022-11-25 13:55:08 +01:00
Xavi Aracil
82ab70eaf9 Added TypePropertyProbe 2022-11-25 12:54:37 +01:00
Xavi Aracil
bf3f93e59e credentialType now is of the interface type 2022-11-25 12:54:17 +01:00
Xavi Aracil
cc33dd4068 Generic TypePropertyProbe 2022-11-25 12:48:11 +01:00
Xavi Aracil
a46fcbff9a Refactor probes, extracted out to a generic class 2022-11-25 08:45:38 +01:00
Xavi Aracil
40b34cce13 Use JsonNodeUtils to manage array nodes 2022-11-25 08:28:07 +01:00
Xavi Aracil
543a2c5bdb Refactored out to a new package 2022-11-24 17:09:21 +01:00
Xavi Aracil
b948a6fa2b Add JSON-LD Validation probe to OB20 2022-11-24 17:07:23 +01:00
Xavi Aracil
20ca615e46 Added simple badge class test 2022-11-24 17:07:10 +01:00
Xavi Aracil
f17f8913bc Add simple badgeclass sample 2022-11-24 17:06:55 +01:00
Xavi Aracil
24a2e02fe6 Added simple png test 2022-11-24 14:37:48 +01:00
Xavi Aracil
a629fc8372 Redirect warning in compaction 2022-11-24 13:51:04 +01:00
Xavi Aracil
0ba347d8f0 Added redirection sample 2022-11-24 13:50:48 +01:00
Xavi Aracil
ca8050d790 Added basic test, using test inspector 2022-11-24 12:01:53 +01:00
Xavi Aracil
6f7b1f710a Added parse and compaction probes 2022-11-24 12:01:35 +01:00
Xavi Aracil
af48747b57 Added a test OB20 inspector, with local redirections 2022-11-24 12:01:05 +01:00
Xavi Aracil
f97b01da82 New probe for compacting JSONLD documents 2022-11-24 11:59:52 +01:00
Xavi Aracil
2d6d93041f Allow redirection of url to local resources 2022-11-24 11:58:48 +01:00
Xavi Aracil
7ee4475917 Added OB 20 context file 2022-11-24 11:58:07 +01:00
Xavi Aracil
579e19a929 Added new method for getting context uris 2022-11-24 11:55:58 +01:00
Xavi Aracil
677caf6f21 Updated samples 2022-11-24 11:15:53 +01:00
Xavi Aracil
c47a04aa8c type property is an string node, not an array 2022-11-24 09:11:22 +01:00
Xavi Aracil
904c97aced Set additional context keys for testing 2022-11-23 17:22:53 +01:00
Xavi Aracil
b7e7aa2c5d Back to CachedDocumentLoader 2022-11-23 17:18:16 +01:00
Xavi Aracil
19c97f2937 Adap CachingDocumentLoader to ConfigurableDocumentLoader 2022-11-23 17:18:02 +01:00
Xavi Aracil
7beb69f87b AbstractBaseCredential renamed to Credential 2022-11-23 09:08:42 +01:00
Xavi Aracil
3ab9c52300 Credential renamed to VerifiableCredential 2022-11-23 09:07:49 +01:00
Xavi Aracil
0e077c7256 First empty inspector for OB20 2022-11-22 18:04:42 +01:00
Xavi Aracil
e56739370f Set new context keys and use the new credentials builder 2022-11-22 18:04:29 +01:00
Xavi Aracil
6c9485cf02 parse now return the generic credential, with keys from context 2022-11-22 18:04:02 +01:00
Xavi Aracil
75d7deffda Added Assertion as a sibling of Credential 2022-11-22 18:03:06 +01:00
Xavi Aracil
21fe60f21b Added basic json test resource 2022-11-22 13:57:35 +01:00
Xavi Aracil
b5ab04da4c Removed duplicated entry 2022-11-17 12:09:07 +01:00
Andy Miller (IMS)
e096f1580b Add valid did:key example 2022-11-16 12:45:50 -08:00
Andy Miller (IMS)
78c1cbe279 Add several more ob3 tests 2022-11-16 12:29:22 -08:00
Andy Miller (IMS)
bd106f9761 Fix ob3 tests
- Update context URL (imsglobal.github.io no longer exists)
- Update simple* resources with updated ob3 spec example json
2022-11-16 11:24:42 -08:00
Xavi Aracil
2a6b045f0c Removed duplicated code 2022-11-15 10:14:51 +01:00
Xavi Aracil
05e9c9702e Merge branch 'develop' into add-http-key-support 2022-11-15 10:04:53 +01:00
Xavi Aracil
38a6abac4f Merge pull request #47 from imsglc/use-configurable-document-loader
Switch to configurable document loader
2022-11-15 10:02:06 +01:00
Andy Miller (IMS)
d620e9d323 Code cleanup 2022-11-10 17:10:53 -08:00
Andy Miller (IMS)
84a7f82c5f Add support for remote key material 2022-11-10 15:24:24 -08:00
Andy Miller (IMS)
4eb82c819b Use URI methods 2022-11-10 14:16:27 -08:00
Andy Miller (IMS)
e73921232f Switch to configurable document loader 2022-11-10 12:18:26 -08:00
Andy Miller (IMS)
aec2be38bd Use Multicodec to decode 2022-11-10 11:56:25 -08:00
Andy Miller (IMS)
26bf98d046 Update simple examples 2022-11-10 11:53:55 -08:00
Andy Miller (IMS)
e813369036 Add cached ob-v3p0-extensions context 2022-11-10 11:43:11 -08:00
Andy Miller (IMS)
90186ad63a Update cached ob-v3p0.context 2022-11-10 11:42:25 -08:00
Markus Gylling
de467db9b4 fix unit tests 2022-10-20 15:40:17 +02:00
Andy Miller (IMS)
5941a9ab4e Update ob30 samples 2022-09-15 13:06:35 -07:00
Markus Gylling
4e35622d92 Update ob and clr schemas (renders from unifiedmodel) 2022-09-15 13:59:33 +02:00
Andy Miller (IMS)
f08e835e95 Decode the public key before giving it to Ed25519Signature2020LdVerifier 2022-09-09 12:07:22 -07:00
Andy Miller (IMS)
07b3abcc57 Update simple.json 2022-09-09 12:06:10 -07:00
Andy Miller (IMS)
5064f428ec Update CachingDocumentLoader.java
Add 'contexts/' to path
2022-09-09 09:58:55 -07:00
Markus Gylling
04cb5dd034 update contexts URLs 2022-09-09 10:27:01 +02:00
Markus Gylling
2ee1e92e6b add new contexts to cache 2022-09-09 10:23:54 +02:00
Markus Gylling
341a15b90a add trial impl of embedded proof verification using verifiable-credentials-java 2022-09-09 09:13:13 +02:00
Markus Gylling
3c0a09624e clean up prooftype getter 2022-09-01 18:48:17 +02:00
Markus Gylling
e413bc1e68 Clean up schema provisioning 2022-09-01 18:46:48 +02:00
Markus Gylling
9da0e784a6 clean up clr step #2 2022-09-01 13:44:47 +02:00
Markus Gylling
23a34bd470 cleanup clr step #1 2022-09-01 11:05:44 +02:00
Markus Gylling
41f06f85e0 Update OB30Inspector.java 2022-08-31 22:53:38 +02:00
Markus Gylling
e1d4f76046 add credential subject probe 2022-08-31 22:44:22 +02:00
Markus Gylling
ccdcd6b0a5 add context probe 2022-08-31 22:44:06 +02:00
Markus Gylling
e574c51faf use multikeymap 2022-08-31 21:42:00 +02:00
Markus Gylling
bbcfac14fc add @context value check probe 2022-08-31 20:30:10 +02:00
Markus Gylling
5e6a277185 clean up endorsementinspector 2022-08-31 19:48:29 +02:00
Markus Gylling
ef74f679fc Update IronTests.java 2022-08-31 16:57:12 +02:00
Markus Gylling
7c7d283530 clean up filenames 2022-08-31 15:04:32 +02:00
Miles Lyon
469d60eae3 Added endorsements, but need to generate more examples, fix proofs and add more unit tests to confirm I am grabbing the right schemas, etc... 2022-08-15 14:22:32 -04:00
Miles Lyon
a7402e5a73 Everything except endorsements, fixing CLR sample with proof and a few sanity checks. 2022-08-12 16:09:17 -04:00
Miles Lyon
79b0932529 Filling out embedded verifiable credential inspector. 2022-08-12 15:04:53 -04:00
Miles Lyon
0545dbf9e3 Introduced an OB validation error while adding CLR. Fixed a missing 'else if' 2022-08-09 14:49:54 -04:00
Miles Lyon
c42ca86915 WIP, but need to hash out with Markus a few things. 2022-07-31 14:19:29 -07:00
Miles Lyon
0c855ec71e WIP, CLR Inspector. Inline Schema probe having an issue that I need to dig deeper into. 2022-07-19 15:51:44 -04:00
Miles Lyon
81b133ec84 Basline simple.json with inspector and one test. 2022-07-19 10:13:33 -04:00
mlyon-ims
766d859b2f Merge pull request #35 from imsglc/uri-upload
Uri upload
2022-07-19 09:47:49 -04:00
Miles Lyon
9f95ba4652 Conditional upload for validators (uri or file upload). Added exceptions for POM conflicts between auth0 and iron verifiable credentials (and iron-vc with itself). 2022-07-18 15:34:23 -04:00
Markus Gylling
67232f5b1d add unit test for JsonSchemaProbe 2022-07-13 21:27:09 +02:00
Markus Gylling
a766a83fd0 Fixes #33 2022-07-13 20:07:19 +02:00
Markus Gylling
59642ac5ab normalize variable names, add break 2022-07-12 12:59:23 +02:00
Miles Lyon
9ab087f026 Added in code to fetch jwk from a url. 2022-07-08 10:51:18 -04:00
Miles Lyon
0f41d00a00 Rebaked simple PNG image with latest example to fix broken unit tests. 2022-07-08 10:31:33 -04:00
Miles Lyon
2b6cf3311f Updated testing SVG with a credential containing a valid proof. 2022-07-08 10:03:49 -04:00
Markus Gylling
ec689cc110 update pom 2022-07-08 12:25:47 +02:00
Markus Gylling
9d3110547e add iron for vc verification, refactor+cleanup 2022-07-08 11:33:45 +02:00
Miles Lyon
092d4eb8f1 Merge branch 'vc-ob-clr' of https://github.com/imsglc/ims-inspector into vc-ob-clr 2022-07-07 09:19:33 -04:00
Miles Lyon
502229883e This is just a snap shot of attempting to get the proof working with bouncy castle ED25519. Ultimately we found a VC library that handles more of this so we will likely remove. 2022-07-07 09:18:38 -04:00
Markus Gylling
c40e061023 throw JsonLdError per spec 2022-07-06 15:41:24 +02:00
Miles Lyon
679320a116 Merge branch 'vc-ob-clr' of https://github.com/imsglc/ims-inspector into vc-ob-clr 2022-07-06 09:26:55 -04:00
Miles Lyon
599155ca6e Committing to merge in changes. WIP, may delete a lot of this. 2022-07-06 09:26:26 -04:00
Markus Gylling
1d051a41b1 Update CachingDocumentLoaderTests.java 2022-07-05 23:50:26 +02:00
Markus Gylling
ebcd653fae add a caching document loader 2022-07-05 23:26:05 +02:00
Markus Gylling
80e7f9bbde implement refreshService 2022-06-30 15:55:17 +02:00
Markus Gylling
c655b3ca1c misc small edits 2022-06-30 15:13:46 +02:00
Markus Gylling
5d5f3f7588 add URDNA2015 2022-06-29 23:00:37 +02:00
Miles Lyon
b32e81bed5 Leaving the old version in case it is needed. We can delete later. 2022-06-29 16:09:35 -04:00
Miles Lyon
e09a383097 One additional commit which is just to update our simple.json proof with a sample with a key directly in the file. 2022-06-29 16:08:18 -04:00
Miles Lyon
c2540377e2 Updated bouncy castle to a higher version to support ED25529. Pulled in Stack Overflow signature/proof verification. 2022-06-24 15:45:27 -04:00
Miles Lyon
78456fceb8 Added 'alg' check. 2022-06-24 15:23:30 -04:00
Miles Lyon
98e00ccf48 WIP, signature additions. 2022-06-24 15:16:28 -04:00
Miles Lyon
a913ac97d8 Rebaked a couple of badges. Added decode jwt code and png type probe. Refactored accordingly to retain external jwt.
Endorsements needs a refactor pending finality on endorsement lookup.
2022-06-23 11:27:27 -04:00
Markus Gylling
3ff7a0f76a Update OB30Inspector.java 2022-06-20 15:13:25 +02:00
Markus Gylling
c91ae7a383 Update CredentialTypeProbe.java 2022-06-20 15:05:27 +02:00
Markus Gylling
068a6edb8d initial cut of ob3 verifier 2022-06-20 14:51:37 +02:00