You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+43-26Lines changed: 43 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,6 @@ At a high level, UCANs (“User Controlled Authorization Network”) are an auth
9
9
10
10
No all-powerful authorization server or server of any kind is required for UCANs. Instead, everything a user can do is captured directly in a key or token, which can be sent to anyone who knows how to interpret the UCAN format. Because UCANs are self-contained, they are easy to consume permissionlessly, and they work well offline and in distributed systems.
11
11
12
-
13
12
UCANs work
14
13
- Server -> Server
15
14
- Client -> Server
@@ -20,14 +19,18 @@ UCANs work
20
19
Read more in the whitepaper: https://whitepaper.fission.codes/access-control/ucan
21
20
22
21
22
+
23
23
## Structure
24
-
### Header
24
+
25
+
### Header
26
+
25
27
`alg`, Algorithm, the type of signature.
26
28
27
29
`typ`, Type, the type of this data structure, JWT.
28
30
29
31
`uav`, UCAN version.
30
-
### Payload
32
+
33
+
### Payload
31
34
32
35
`att`, Attenuation, a list of resources and capabilities that the ucan grants.
33
36
@@ -44,41 +47,52 @@ Read more in the whitepaper: https://whitepaper.fission.codes/access-control/uca
44
47
`prf`, Proof, an optional nested token with equal or greater privileges.
45
48
46
49
### Signature
50
+
47
51
A signature (using `alg`) of the base64 encoded header and payload concatenated together and delimited by `.`
48
52
49
-
## Build params
50
-
Use `ucan.build` to help in formatting and signing a ucan. It takes the following parameters
53
+
54
+
55
+
## Build
56
+
57
+
`ucan.build` can be used to help in formatting and signing a UCAN. It takes the following parameters:
0 commit comments