Steve Moyer
bfb93d6988
Merge branch 'feat/complete-invocation-stub' of github.com:ucan-wg/go-ucan into feat/complete-invocation-stub
2024-11-06 12:57:13 -05:00
Michael Muré
cfcb199818
meta: prevent overwrite of values
2024-11-06 12:57:04 -05:00
Steve Moyer
85557ab6b5
test(policy): refactor matching test from delegation spec
2024-11-06 12:57:01 -05:00
Steve Moyer
adc2b8d0da
test(policy): adds example test case from invocation specification
2024-11-06 12:55:49 -05:00
Michael Muré
bcdaf0cca3
invocation: round of cleanups/fixes
2024-11-06 12:55:45 -05:00
Steve Moyer
d754c5837b
test(invocation): adds schema round-trip test
2024-11-06 12:51:24 -05:00
Steve Moyer
d89fb395e3
feat(invocation): ipld unseal to invocation
2024-11-06 12:48:41 -05:00
Steve Moyer
4932e32052
feat(invocation): produce example output similar to spec
2024-11-06 12:44:48 -05:00
Steve Moyer
a52b48cf47
feat(invocation): provide New constructor and encoding to wire-format
2024-11-06 12:41:36 -05:00
Steve Moyer
e6e4d85381
Merge branch 'feat/complete-invocation-stub' of github.com:ucan-wg/go-ucan into feat/complete-invocation-stub
2024-11-06 12:22:19 -05:00
Steve Moyer
962e897ff5
Otest(policy): refactor matching test from delegation spec
2024-11-06 12:18:15 -05:00
Steve Moyer
58bb5cdb8f
test(policy): adds example test case from invocation specification
2024-11-06 12:16:49 -05:00
Steve Moyer
ce7f653ab0
chore(invocation): clean up left-over (and unneeded) conversion of prf
2024-11-06 12:16:49 -05:00
Michael Muré
7d4f973171
invocation: round of cleanups/fixes
2024-11-06 12:16:48 -05:00
Steve Moyer
3dc0011628
docs(invocation): edit (and finish) Go docs for exported types
2024-11-06 12:16:47 -05:00
Steve Moyer
08f821f23d
test(invocation): adds schema round-trip test
2024-11-06 12:16:46 -05:00
Steve Moyer
1b61f2e4db
docs(invocation): fix truncated WithEmptyNonce description
2024-11-06 12:16:45 -05:00
Steve Moyer
187e7a869c
feat(invocation): ipld unseal to invocation
2024-11-06 12:16:44 -05:00
Steve Moyer
a98653b769
feat(invocation): produce example output similar to spec
2024-11-06 12:16:43 -05:00
Steve Moyer
31d16ac468
feat(invocation): provide New constructor and encoding to wire-format
2024-11-06 12:16:42 -05:00
Michael Muré
d2b004c405
meta: prevent overwrite of values
2024-11-06 18:06:46 +01:00
Michael Muré
884d63a689
Merge pull request #53 from ucan-wg/test-literal
...
literal: add test suite
2024-11-06 16:45:19 +01:00
Michael Muré
c9f3a6033a
delegation: minor fix around meta
2024-11-06 16:43:57 +01:00
Michael Muré
8447499c5a
literal: add test suite
2024-11-06 16:42:45 +01:00
Steve Moyer
b4e222f8a0
test(policy): refactor matching test from delegation spec
2024-11-06 10:17:18 -05:00
Michael Muré
41b8600fbc
Merge pull request #52 from ucan-wg/meta-readonly
...
meta: make a read-only version to enforce token immutability
2024-11-06 15:28:19 +01:00
Steve Moyer
824c8fe523
test(policy): adds example test case from invocation specification
2024-11-06 09:25:51 -05:00
Michael Muré
6aeb6a8b70
meta: make a read-only version to enforce token immutability
2024-11-06 15:17:35 +01:00
Steve Moyer
a1aaf47d7c
chore(invocation): clean up left-over (and unneeded) conversion of prf
2024-11-05 15:28:31 -05:00
Michael Muré
728696f169
invocation: round of cleanups/fixes
2024-11-05 17:39:39 +01:00
Michael Muré
cfb4446a05
Merge pull request #48 from ucan-wg/pol-partial
...
policy: implement partial matching, to evaluate in multiple steps with fail early
2024-11-05 16:31:52 +01:00
Michael Muré
06a72868a5
container: add a delegation iterator
2024-11-05 16:26:53 +01:00
Michael Muré
6f9a6fa5c1
literal: make Map and List generic, to avoid requiring conversions
2024-11-05 16:26:14 +01:00
Steve Moyer
f2b4c3ac20
docs(invocation): edit (and finish) Go docs for exported types
2024-11-05 09:35:55 -05:00
Steve Moyer
7a7db684c3
test(invocation): adds schema round-trip test
2024-11-05 08:39:43 -05:00
Steve Moyer
d7454156d2
docs(invocation): fix truncated WithEmptyNonce description
2024-11-05 07:39:51 -05:00
Steve Moyer
d3ad6715d9
feat(invocation): ipld unseal to invocation
2024-11-04 16:07:11 -05:00
Fabio Bozzo
602bdf9c7a
fix broken meta_test.gotest
2024-11-04 19:15:34 +01:00
Fabio Bozzo
d21c17c4ca
address pr remarks
2024-11-04 19:11:25 +01:00
Michael Muré
72f4ef7b5e
policy: fix incorrect test for PartialMatch
2024-11-04 19:07:36 +01:00
Fabio Bozzo
02be4010d6
add array quantifiers tests and tiny fix
2024-11-04 18:50:30 +01:00
Michael Muré
61e031529f
policy: use "any"
2024-11-04 18:41:18 +01:00
Michael Muré
19721027e4
literal: rewrite Map() to cover more types
2024-11-04 18:34:31 +01:00
Fabio Bozzo
bc847ee027
fix literal.Map to handle list values too
2024-11-04 17:10:57 +01:00
Fabio Bozzo
5bfe430934
add test cases for missing optional values for all operators
2024-11-04 17:07:32 +01:00
Fabio Bozzo
10b5e1e603
add test cases for optional, like pattern, nested policy
2024-11-04 13:04:54 +01:00
Michael Muré
3cf1de6b67
policy: fix distrinction between "no data" and "optional not data"
2024-11-04 11:15:32 +01:00
Michael Muré
400f689a85
literal: some better typing
2024-11-04 11:15:12 +01:00
Fabio Bozzo
6717a3a89c
refactor: simplify optional selector handling
...
Let Select() handle optional selectors by checking its nil return value, rather than explicitly checking IsOptional()
Applied this pattern consistently across all statement kinds (Equal, Like, All, Any, etc)
2024-11-04 10:56:06 +01:00
Fabio Bozzo
9e9c632ded
revert typo
2024-11-01 17:47:47 +01:00