|
6 | 6 | "import": [ |
7 | 7 | "sai-uma:config/credentials/verifiers/default.json", |
8 | 8 | "sai-uma:config/dialog/negotiators/default.json", |
| 9 | + "sai-uma:config/http/cors/cors.json", |
| 10 | + "sai-uma:config/http/parsing/server.json", |
9 | 11 | "sai-uma:config/policies/authorizers/default.json", |
10 | 12 | "sai-uma:config/resources/storage/default.json", |
11 | 13 | "sai-uma:config/routes/discovery.json", |
|
35 | 37 | "@id": "urn:uma:default:HandlerServerConfigurator", |
36 | 38 | "@type": "HandlerServerConfigurator", |
37 | 39 | "handler": { |
38 | | - "@id": "urn:uma:default:NodeHttpRequestResponseHandler" |
| 40 | + "@id": "urn:uma:default:HttpHandler" |
39 | 41 | } |
40 | 42 | } |
41 | 43 | } |
|
44 | 46 | "@id": "urn:uma:default:HttpHandler", |
45 | 47 | "@type": "SequenceHandler", |
46 | 48 | "handlers": [ |
47 | | - { |
48 | | - "comment": "Adds all the necessary CORS headers.", |
49 | | - "@id": "urn:uma:default:CorsHandler", |
50 | | - "@type": "CorsHandler", |
51 | | - "options_methods": [ |
52 | | - "GET", |
53 | | - "HEAD", |
54 | | - "OPTIONS", |
55 | | - "POST", |
56 | | - "PUT", |
57 | | - "PATCH", |
58 | | - "DELETE" |
59 | | - ], |
60 | | - "options_credentials": true, |
61 | | - "options_preflightContinue": false, |
62 | | - "options_exposedHeaders": [ |
63 | | - "Allow", |
64 | | - "ETag", |
65 | | - "Last-Modified", |
66 | | - "Link", |
67 | | - "Location", |
68 | | - "Updates-Via", |
69 | | - "Www-Authenticate" |
70 | | - ] |
71 | | - }, |
72 | | - { |
73 | | - "@id": "urn:uma:default:NodeHttpRequestResponseHandler" |
74 | | - } |
| 49 | + { "@id": "urn:uma:default:CorsHandler" }, |
| 50 | + { "@id": "urn:uma:default:ParsingHttpHandler" } |
75 | 51 | ] |
76 | 52 | }, |
77 | 53 | { |
78 | | - "@id": "urn:uma:default:NodeHttpRequestResponseHandler", |
79 | | - "@type": "NodeHttpRequestResponseHandler", |
80 | | - "targetExtractor": { |
81 | | - "@type": "BaseTargetExtractor", |
82 | | - "includeQueryString": true |
83 | | - }, |
84 | | - "httpHandler": { |
85 | | - "@type": "JsonHttpErrorHandler", |
86 | | - "nestedHandler": { |
87 | | - "@id": "urn:uma:default:HttpHandlerController", |
88 | | - "@type": "WaterfallHandler", |
89 | | - "handlers": [ |
90 | | - { "@id": "urn:uma:default:UmaConfigRouteHandler" }, |
91 | | - { "@id": "urn:uma:default:JwksRouteHandler" }, |
92 | | - { "@id": "urn:uma:default:TokenRouteHandler" }, |
93 | | - { "@id": "urn:uma:default:PermissionRegistrationRouteHandler" }, |
94 | | - { "@id": "urn:uma:default:ResourceRegistrationRouteHandler" }, |
95 | | - { "@id": "urn:uma:default:ResourceRegistrationOpsRouteHandler" }, |
96 | | - { "@id": "urn:uma:default:IntrospectionRouteHandler" }, |
97 | | - { |
98 | | - "@type": "StaticThrowHandler", |
99 | | - "error": { "@type": "NotFoundHttpError" } |
100 | | - } |
101 | | - ] |
102 | | - } |
| 54 | + "comment": "The main entry point into the main Solid behaviour.", |
| 55 | + "@id": "urn:uma:default:ParsingHttpHandler", |
| 56 | + "@type": "ParsingHttpHandler", |
| 57 | + "requestParser": { "@id": "urn:uma:default:RequestParser" }, |
| 58 | + "errorHandler": { "@id": "urn:uma:default:ErrorHandler" }, |
| 59 | + "responseWriter": { "@id": "urn:uma:default:ResponseWriter" }, |
| 60 | + "operationHandler": { |
| 61 | + "@id": "urn:uma:default:JsonHttpErrorHandler" |
| 62 | + } |
| 63 | + }, |
| 64 | + { |
| 65 | + "@id": "urn:uma:default:JsonHttpErrorHandler", |
| 66 | + "@type": "JsonHttpErrorHandler", |
| 67 | + "nestedHandler": { |
| 68 | + "@id": "urn:uma:default:HttpHandlerController", |
| 69 | + "@type": "WaterfallHandler", |
| 70 | + "handlers": [ |
| 71 | + { "@id": "urn:uma:default:UmaConfigRouteHandler" }, |
| 72 | + { "@id": "urn:uma:default:JwksRouteHandler" }, |
| 73 | + { "@id": "urn:uma:default:TokenRouteHandler" }, |
| 74 | + { "@id": "urn:uma:default:PermissionRegistrationRouteHandler" }, |
| 75 | + { "@id": "urn:uma:default:ResourceRegistrationRouteHandler" }, |
| 76 | + { "@id": "urn:uma:default:ResourceRegistrationOpsRouteHandler" }, |
| 77 | + { "@id": "urn:uma:default:IntrospectionRouteHandler" }, |
| 78 | + { |
| 79 | + "@type": "StaticThrowHandler", |
| 80 | + "error": { "@type": "NotFoundHttpError" } |
| 81 | + } |
| 82 | + ] |
103 | 83 | } |
104 | 84 | }, |
105 | 85 | { |
|
0 commit comments