|
40 | 40 | } |
41 | 41 | } |
42 | 42 | }, |
| 43 | + { |
| 44 | + "@id": "urn:uma:default:HttpHandler", |
| 45 | + "@type": "SequenceHandler", |
| 46 | + "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 | + } |
| 75 | + ] |
| 76 | + }, |
43 | 77 | { |
44 | 78 | "@id": "urn:uma:default:NodeHttpRequestResponseHandler", |
45 | 79 | "@type": "NodeHttpRequestResponseHandler", |
|
48 | 82 | "includeQueryString": true |
49 | 83 | }, |
50 | 84 | "httpHandler": { |
51 | | - "@id": "urn:uma:default:CorsRequestHandler", |
52 | | - "@type": "CorsRequestHandler", |
53 | | - "handler": { |
54 | | - "@id": "urn:uma:default:RoutedHttpRequestHandler", |
55 | | - "@type": "RoutedHttpRequestHandler", |
56 | | - "handlerControllerList": [ |
57 | | - { |
58 | | - "@id": "urn:uma:default:HttpHandlerController", |
59 | | - "@type": "HttpHandlerController", |
60 | | - "label": "ControllerList", |
61 | | - "routes": [ |
62 | | - { "@id": "urn:uma:default:UmaConfigRoute" }, |
63 | | - { "@id": "urn:uma:default:JwksRoute" }, |
64 | | - { "@id": "urn:uma:default:TokenRoute" }, |
65 | | - { "@id": "urn:uma:default:PermissionRegistrationRoute" }, |
66 | | - { "@id": "urn:uma:default:ResourceRegistrationRoute" }, |
67 | | - { "@id": "urn:uma:default:ResourceRegistrationOpsRoute" }, |
68 | | - { "@id": "urn:uma:default:IntrospectionRoute" } |
69 | | - ] |
70 | | - } |
71 | | - ], |
72 | | - "defaultHandler": { |
73 | | - "@type": "DefaultRequestHandler" |
| 85 | + "@id": "urn:uma:default:RoutedHttpRequestHandler", |
| 86 | + "@type": "RoutedHttpRequestHandler", |
| 87 | + "handlerControllerList": [ |
| 88 | + { |
| 89 | + "@id": "urn:uma:default:HttpHandlerController", |
| 90 | + "@type": "HttpHandlerController", |
| 91 | + "label": "ControllerList", |
| 92 | + "routes": [ |
| 93 | + { "@id": "urn:uma:default:UmaConfigRoute" }, |
| 94 | + { "@id": "urn:uma:default:JwksRoute" }, |
| 95 | + { "@id": "urn:uma:default:TokenRoute" }, |
| 96 | + { "@id": "urn:uma:default:PermissionRegistrationRoute" }, |
| 97 | + { "@id": "urn:uma:default:ResourceRegistrationRoute" }, |
| 98 | + { "@id": "urn:uma:default:ResourceRegistrationOpsRoute" }, |
| 99 | + { "@id": "urn:uma:default:IntrospectionRoute" } |
| 100 | + ] |
74 | 101 | } |
| 102 | + ], |
| 103 | + "defaultHandler": { |
| 104 | + "@type": "DefaultRequestHandler" |
75 | 105 | } |
76 | 106 | } |
77 | 107 | }, |
|
0 commit comments