Skip to content

Instantly share code, notes, and snippets.

@damooo
damooo / webid-sasl.md
Last active February 28, 2024 10:09
Notes on WebId-SASL

The Soid ecosystem aims for decentralized web, in which users are in control of their data, and identity. To enable that, it uses WebIds as the primary identifiers for agents. The WebId Speciication describes it's motive as follows:

A global distributed Social Web requires that each person be able to control their identity, that this identity be linkable across sites - placing each person in a Web of relationships - and that it be possible to authenticate globally with such identities.

A WebID is a URI with an HTTP or HTTPS scheme which denotes an Agent (Person, Organization, Group, Device, etc.). For WebIDs with fragment identifiers (e.g. #me), the URI without the fragment denotes the Profile Document. For WebIDs without fragment identifiers an HTTP request on the WebID MUST return a 303 with a Location header URI

@damooo
damooo / acp.ttl
Created September 28, 2022 02:08
ACP ontology file
prefix acp: <http://www.w3.org/ns/solid/acp#>
prefix cito: <http://purl.org/spar/cito/>
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>
prefix owl: <http://www.w3.org/2002/07/owl#>
prefix xsd: <http://www.w3.org/2001/XMLSchema#>
prefix dc: <http://purl.org/dc/terms/>
prefix vann: <http://purl.org/vocab/vann/>
<http://www.w3.org/ns/solid/acp#>
@damooo
damooo / machine.js
Last active December 29, 2019 07:54
Generated by XState Viz: https://xstate.js.org/viz
const AuthFSM = Machine({
id: 'AuthMachine',
initial: 'init',
context: {},
states: {
init: {
on: {
INIT_AUTH: 'authorized',
INIT_UNAUTH: 'unauthorized',
},