forked from CommunitySolidServer/hello-world-component
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhttpsig-file.json
54 lines (54 loc) · 1.97 KB
/
httpsig-file.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"@context": [
"https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^6.0.0/components/context.jsonld",
"https://linkedsoftwaredependencies.org/bundles/npm/httpsig-module/^6.0.0/components/context.jsonld"
],
"import": [
"css:config/default.json",
"httpsig:config/www-httpsig.json"
],
"@graph": [
{
"comment": "Supply an additional handler to the existing MetadataWriter",
"@id": "urn:solid-server:default:MetadataWriter",
"@type": "ParallelHandler",
"handlers": { "@id": "urn:solid-server:httpsig:MetadataWriter_WwwAuth" }
},
{
"@type": "Override",
"comment": "Caches the credentials based on the incoming request.",
"overrideInstance": { "@id": "urn:solid-server:default:CredentialsExtractor" },
"overrideParameters": {
"@type": "CachedHandler",
"source": {
"comment": "Supports DPoP and Bearer access tokens, or no credentials.",
"@type": "UnionCredentialsExtractor",
"extractors": [
{
"@type": "WaterfallHandler",
"handlers": [
{
"@type": "HttpSigWebIdExtractor",
"comment": "TODO: Remove this if we don't need the OriginalUrlExtractor",
"originalUrlExtractor": {
"@type": "OriginalUrlExtractor",
"args_identifierStrategy": { "@id": "urn:solid-server:default:IdentifierStrategy" }
}
},
{
"@type": "DPoPWebIdExtractor",
"originalUrlExtractor": {
"@type": "OriginalUrlExtractor",
"args_identifierStrategy": { "@id": "urn:solid-server:default:IdentifierStrategy" }
}
},
{ "@type": "BearerWebIdExtractor" }
]
},
{ "@type": "PublicCredentialsExtractor" }
]
}
}
}
]
}