Skip to content

Commit

Permalink
#512 authentication resource spec added
Browse files Browse the repository at this point in the history
  • Loading branch information
joepio committed Oct 11, 2022
1 parent ee857d2 commit 55ba587
Showing 1 changed file with 51 additions and 0 deletions.
51 changes: 51 additions & 0 deletions lib/defaults/default_store.json
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,57 @@
],
"https://atomicdata.dev/properties/shortname": "append"
},
{
"@id": "https://atomicdata.dev/properties/auth/agent",
"https://atomicdata.dev/properties/classtype": "https://atomicdata.dev/classes/Agent",
"https://atomicdata.dev/properties/datatype": "https://atomicdata.dev/datatypes/atomicURL",
"https://atomicdata.dev/properties/description": "The Agent making the signature.",
"https://atomicdata.dev/properties/isA": [
"https://atomicdata.dev/classes/Property"
],
"https://atomicdata.dev/properties/parent": "https://atomicdata.dev/properties",
"https://atomicdata.dev/properties/shortname": "agent"
},
{
"@id": "https://atomicdata.dev/properties/auth/requestedSubject",
"https://atomicdata.dev/properties/datatype": "https://atomicdata.dev/datatypes/string",
"https://atomicdata.dev/properties/description": "The URL of the requested resource.\n\n- If we're authenticating a WebSocket, we use the wss address as the requestedSubject. (e.g. `wss://example.com/ws`)\n- If we're authenticating a Cookie, we use the origin of the server (e.g. `https://example.com`)\n- If we're authentication a single HTTP request, use the same URL as the GET address (e.g. `https://example.com/myResource`)\n",
"https://atomicdata.dev/properties/isA": [
"https://atomicdata.dev/classes/Property"
],
"https://atomicdata.dev/properties/parent": "https://atomicdata.dev/properties",
"https://atomicdata.dev/properties/shortname": "requested-subject"
},
{
"@id": "https://atomicdata.dev/properties/auth/publicKey",
"https://atomicdata.dev/properties/datatype": "https://atomicdata.dev/datatypes/string",
"https://atomicdata.dev/properties/description": "The base64 serialized ED25519 public key of the agent setting the signature.",
"https://atomicdata.dev/properties/isA": [
"https://atomicdata.dev/classes/Property"
],
"https://atomicdata.dev/properties/parent": "https://atomicdata.dev/properties",
"https://atomicdata.dev/properties/shortname": "public-key"
},
{
"@id": "https://atomicdata.dev/properties/auth/signedAt",
"https://atomicdata.dev/properties/datatype": "https://atomicdata.dev/datatypes/timestamp",
"https://atomicdata.dev/properties/description": "When the signature was created",
"https://atomicdata.dev/properties/isA": [
"https://atomicdata.dev/classes/Property"
],
"https://atomicdata.dev/properties/parent": "https://atomicdata.dev",
"https://atomicdata.dev/properties/shortname": "signed-at"
},
{
"@id": "https://atomicdata.dev/properties/auth/signature",
"https://atomicdata.dev/properties/datatype": "https://atomicdata.dev/datatypes/string",
"https://atomicdata.dev/properties/description": "A base64 serialized signature of the string `{requestedSubject} {timestamp}`, using the `privateKey` of the Agent, using ed25519 encryption.",
"https://atomicdata.dev/properties/isA": [
"https://atomicdata.dev/classes/Property"
],
"https://atomicdata.dev/properties/parent": "https://atomicdata.dev",
"https://atomicdata.dev/properties/shortname": "signature"
},
{
"@id": "https://atomicdata.dev/properties/drives",
"https://atomicdata.dev/properties/classtype": "https://atomicdata.dev/classes/Drive",
Expand Down

0 comments on commit 55ba587

Please sign in to comment.