|
1 | 1 | { |
2 | 2 | "@context": [ |
3 | | - "https://linkedsoftwaredependencies.org/bundles/npm/@solidlab/uma/^0.0.0/components/context.jsonld", |
4 | | - "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server/^7.0.0/components/context.jsonld" |
| 3 | + "https://linkedsoftwaredependencies.org/bundles/npm/@solidlab/uma/^0.0.0/components/context.jsonld" |
5 | 4 | ], |
6 | 5 | "import": [ |
7 | | - "sai-uma:config/credentials/verifiers/default.json", |
8 | | - "sai-uma:config/dialog/negotiators/contract.json", |
9 | | - "sai-uma:config/policies/authorizers/odrl.json", |
10 | | - "sai-uma:config/resources/storage/default.json", |
11 | | - "sai-uma:config/routes/discovery.json", |
12 | | - "sai-uma:config/routes/introspection.json", |
13 | | - "sai-uma:config/routes/keys.json", |
14 | | - "sai-uma:config/routes/resources.json", |
15 | | - "sai-uma:config/routes/tickets.json", |
16 | | - "sai-uma:config/routes/tokens_contract.json", |
17 | | - "sai-uma:config/routes/log.json", |
18 | | - "sai-uma:config/routes/vc.json", |
19 | | - "sai-uma:config/routes/contract.json", |
20 | | - "sai-uma:config/tickets/storage/default.json", |
21 | | - "sai-uma:config/tickets/strategy/immediate-authorizer.json", |
22 | | - "sai-uma:config/tokens/factory/default.json", |
23 | | - "sai-uma:config/tokens/storage/default.json", |
24 | | - "sai-uma:config/variables/default.json" |
| 6 | + "sai-uma:config/default.json" |
25 | 7 | ], |
26 | 8 | "@graph": [ |
27 | 9 | { |
28 | | - "@id": "urn:uma:default:NodeHttpServer", |
29 | | - "@type": "ServerInitializer", |
30 | | - "port": { |
31 | | - "@id": "urn:uma:variables:port" |
32 | | - }, |
33 | | - "serverFactory": { |
34 | | - "@id": "urn:uma:default:ServerFactory", |
35 | | - "@type": "BaseServerFactory", |
36 | | - "configurator": { |
37 | | - "comment": "Handles all request events from the server.", |
38 | | - "@id": "urn:uma:default:HandlerServerConfigurator", |
39 | | - "@type": "HandlerServerConfigurator", |
40 | | - "handler": { |
41 | | - "@id": "urn:uma:default:NodeHttpRequestResponseHandler" |
42 | | - } |
| 10 | + "@id": "urn:uma:demo:Authorizer", |
| 11 | + "@type": "Override", |
| 12 | + "overrideInstance": { "@id": "urn:uma:default:Authorizer" }, |
| 13 | + "overrideParameters": { |
| 14 | + "@type": "OdrlAuthorizer", |
| 15 | + "eyePath": { "@id": "urn:uma:variables:eyePath" }, |
| 16 | + "policies": { |
| 17 | + "@id": "urn:uma:default:RulesStorage" |
43 | 18 | } |
44 | 19 | } |
45 | | - }, |
46 | | - { |
47 | | - "@id": "urn:uma:default:HttpHandler", |
48 | | - "@type": "SequenceHandler", |
49 | | - "handlers": [ |
50 | | - { |
51 | | - "comment": "Adds all the necessary CORS headers.", |
52 | | - "@id": "urn:uma:default:CorsHandler", |
53 | | - "@type": "CorsHandler", |
54 | | - "options_methods": [ |
55 | | - "GET", |
56 | | - "HEAD", |
57 | | - "OPTIONS", |
58 | | - "POST", |
59 | | - "PUT", |
60 | | - "PATCH", |
61 | | - "DELETE" |
62 | | - ], |
63 | | - "options_credentials": true, |
64 | | - "options_preflightContinue": false, |
65 | | - "options_exposedHeaders": [ |
66 | | - "Allow", |
67 | | - "ETag", |
68 | | - "Last-Modified", |
69 | | - "Link", |
70 | | - "Location", |
71 | | - "Updates-Via", |
72 | | - "Www-Authenticate" |
73 | | - ] |
74 | | - }, |
75 | | - { |
76 | | - "@id": "urn:uma:default:NodeHttpRequestResponseHandler" |
77 | | - } |
78 | | - ] |
79 | | - }, |
80 | | - { |
81 | | - "@id": "urn:uma:default:NodeHttpRequestResponseHandler", |
82 | | - "@type": "NodeHttpRequestResponseHandler", |
83 | | - "targetExtractor": { |
84 | | - "@type": "BaseTargetExtractor", |
85 | | - "includeQueryString": true |
86 | | - }, |
87 | | - "httpHandler": { |
88 | | - "@id": "urm:uma:default:JsonHttpErrorHandler", |
89 | | - "@type": "JsonHttpErrorHandler", |
90 | | - "handler": { |
91 | | - "@id": "urm:uma:default:JsonFormHttpHandler", |
92 | | - "@type": "JsonFormHttpHandler", |
93 | | - "handler": { |
94 | | - "@id": "urn:uma:default:RoutedHttpRequestHandler", |
95 | | - "@type": "RoutedHttpRequestHandler", |
96 | | - "routes": [ |
97 | | - { "@id": "urn:uma:default:UmaConfigRoute" }, |
98 | | - { "@id": "urn:uma:default:JwksRoute" }, |
99 | | - { "@id": "urn:uma:default:DemoTokenRoute" }, |
100 | | - { "@id": "urn:uma:default:PermissionRegistrationRoute" }, |
101 | | - { "@id": "urn:uma:default:ResourceRegistrationRoute" }, |
102 | | - { "@id": "urn:uma:default:ResourceRegistrationOpsRoute" }, |
103 | | - { "@id": "urn:uma:default:IntrospectionRoute" }, |
104 | | - { "@id": "urn:uma:default:LogRoute" }, |
105 | | - { "@id": "urn:uma:default:VCRoute" }, |
106 | | - { "@id": "urn:uma:default:ContractRoute" } |
107 | | - ], |
108 | | - "defaultHandler": { |
109 | | - "@type": "DefaultRequestHandler" |
110 | | - } |
111 | | - } |
112 | | - } |
113 | | - } |
114 | | - }, |
115 | | - { |
116 | | - "comment": "Configuration for the UMA AS." |
117 | 20 | } |
118 | 21 | ] |
119 | 22 | } |
0 commit comments