Skip to content
This repository was archived by the owner on Jan 20, 2024. It is now read-only.

Commit 4a336a9

Browse files
committed
fixes #159 rollback cors in the handler.yml for oauth-console
1 parent 3235114 commit 4a336a9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+15
-249
lines changed

client/src/test/resources/config/handler.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ handlers:
4242
- com.networknt.audit.AuditHandler@audit
4343
- com.networknt.sanitizer.SanitizerHandler@sanitizer
4444
- com.networknt.openapi.ValidatorHandler@validator
45-
- com.networknt.cors.CorsHttpHandler@cors
4645
# Customer business domain specific cross-cutting concerns handlers
4746
# - com.example.validator.CustomizedValidator@custvalidator
4847
# Framework endpoint handlers
@@ -74,13 +73,8 @@ chains:
7473
- audit
7574
- sanitizer
7675
- validator
77-
- cors
7876

7977
paths:
80-
- path: '/oauth2/client'
81-
method: 'options'
82-
exec:
83-
- cors
8478
- path: '/oauth2/client'
8579
method: 'post'
8680
exec:
@@ -96,10 +90,6 @@ paths:
9690
exec:
9791
- default
9892
- com.networknt.oauth.client.handler.Oauth2ClientGetHandler
99-
- path: '/oauth2/client/{clientId}'
100-
method: 'options'
101-
exec:
102-
- cors
10393
- path: '/oauth2/client/{clientId}'
10494
method: 'delete'
10595
exec:

client/src/test/resources/config/openapi.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ servers:
1212
- url: 'https://oauth2.networknt.com'
1313
paths:
1414
/oauth2/client:
15-
options:
16-
description: Return permissions
17-
operationId: checkPermisson
18-
responses:
19-
'200':
20-
description: Successful response
2115
post:
2216
description: Return a client object
2317
operationId: createClient
@@ -85,12 +79,6 @@ paths:
8579
- client_auth:
8680
- oauth.client.r
8781
'/oauth2/client/{clientId}':
88-
options:
89-
description: Return permissions
90-
operationId: checkPermisson
91-
responses:
92-
'200':
93-
description: Successful response
9482
delete:
9583
description: Delete a client by Id
9684
operationId: deleteClient

db/mariadb/config/oauth2-client/handler.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ handlers:
4242
- com.networknt.audit.AuditHandler@audit
4343
- com.networknt.sanitizer.SanitizerHandler@sanitizer
4444
- com.networknt.openapi.ValidatorHandler@validator
45-
- com.networknt.cors.CorsHttpHandler@cors
4645
# Customer business domain specific cross-cutting concerns handlers
4746
# - com.example.validator.CustomizedValidator@custvalidator
4847
# Framework endpoint handlers
@@ -74,13 +73,8 @@ chains:
7473
- audit
7574
- sanitizer
7675
- validator
77-
- cors
7876

7977
paths:
80-
- path: '/oauth2/client'
81-
method: 'options'
82-
exec:
83-
- cors
8478
- path: '/oauth2/client'
8579
method: 'post'
8680
exec:
@@ -96,10 +90,6 @@ paths:
9690
exec:
9791
- default
9892
- com.networknt.oauth.client.handler.Oauth2ClientGetHandler
99-
- path: '/oauth2/client/{clientId}'
100-
method: 'options'
101-
exec:
102-
- cors
10393
- path: '/oauth2/client/{clientId}'
10494
method: 'delete'
10595
exec:

db/mariadb/config/oauth2-client/openapi.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ servers:
1212
- url: 'https://oauth2.networknt.com'
1313
paths:
1414
/oauth2/client:
15-
options:
16-
description: Return permissions
17-
operationId: checkPermisson
18-
responses:
19-
'200':
20-
description: Successful response
2115
post:
2216
description: Return a client object
2317
operationId: createClient
@@ -85,12 +79,6 @@ paths:
8579
- client_auth:
8680
- oauth.client.r
8781
'/oauth2/client/{clientId}':
88-
options:
89-
description: Return permissions
90-
operationId: checkPermisson
91-
responses:
92-
'200':
93-
description: Successful response
9482
delete:
9583
description: Delete a client by Id
9684
operationId: deleteClient
-295 Bytes
Binary file not shown.
-240 Bytes
Binary file not shown.
-295 Bytes
Binary file not shown.
-240 Bytes
Binary file not shown.

db/mariadb/config/oauth2-key/handler.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ handlers:
4242
- com.networknt.audit.AuditHandler@audit
4343
- com.networknt.sanitizer.SanitizerHandler@sanitizer
4444
- com.networknt.openapi.ValidatorHandler@validator
45-
- com.networknt.cors.CorsHttpHandler@cors
4645
# Customer business domain specific cross-cutting concerns handlers
4746
# - com.example.validator.CustomizedValidator@custvalidator
4847
# Framework endpoint handlers
@@ -65,13 +64,8 @@ chains:
6564
- audit
6665
- sanitizer
6766
- validator
68-
- cors
6967

7068
paths:
71-
- path: '/oauth2/key/{keyId}'
72-
method: 'options'
73-
exec:
74-
- cors
7569
- path: '/oauth2/key/{keyId}'
7670
method: 'get'
7771
exec:

db/mariadb/config/oauth2-key/openapi.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@ servers:
1212
- url: 'https://oauth2.networknt.com'
1313
paths:
1414
'/oauth2/key/{keyId}':
15-
options:
16-
description: Return permissions
17-
operationId: checkPermisson
18-
responses:
19-
'200':
20-
description: Successful response
2115
get:
2216
description: Get a key by Id
2317
operationId: getKeyById

0 commit comments

Comments
 (0)