Skip to content
This repository was archived by the owner on Jan 20, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
1fbb247
initial commit for #155
dz-1 Dec 17, 2018
e46137a
add changes for #155
dz-1 Dec 18, 2018
9d342f8
fix formatting in Readme.md #155
dz-1 Dec 18, 2018
d28b91a
fix instructions in Readme.md #155
dz-1 Dec 18, 2018
3da5ef8
add changes for #155
dz-1 Dec 18, 2018
343876a
add changes for #155
dz-1 Dec 19, 2018
cf2cb3a
add changes for #155
dz-1 Dec 20, 2018
7e5aad9
apply CORS properly - #155
dz-1 Dec 20, 2018
13124fc
clean up unused code - #155
dz-1 Dec 20, 2018
22f968d
update env - #155
dz-1 Dec 20, 2018
65ee9e0
address net::ERR_CERT_AUTHORITY_INVALID
dz-1 Jan 4, 2019
6a36a90
update README.md
dz-1 Jan 4, 2019
fa9e5b7
Update README.md
dz-1 Jan 4, 2019
330e131
Merge remote-tracking branch 'origin/master' into ui-dev
dz-1 Jan 4, 2019
cd979a9
Merge branch 'ui-dev' of https://github.com/networknt/light-oauth2 in…
dz-1 Jan 4, 2019
58205bf
add indent
dz-1 Jan 4, 2019
512cb7f
Update README.md
dz-1 Jan 4, 2019
470e182
add changes for service view
dz-1 Jan 4, 2019
e565116
fix item toggling #155
dz-1 Jan 7, 2019
257a639
add 'Add service' button #155
dz-1 Jan 8, 2019
bf5eda8
start service editor #155
dz-1 Jan 8, 2019
f0d85b0
Merge remote-tracking branch 'origin/develop' into ui-dev
dz-1 Jan 30, 2019
391ec39
'add service' completed - #155
dz-1 Feb 5, 2019
b5fcb3d
refine config and make serviceEditor closeable - #155
dz-1 Feb 6, 2019
7e56d30
Merge remote-tracking branch 'origin/develop' into ui-dev
dz-1 Feb 6, 2019
091ca0c
complete edit and delete service - #155
dz-1 Feb 6, 2019
0b20c41
complete client editor - #155
dz-1 Feb 11, 2019
0836289
inital checkin for user view - #155
dz-1 Feb 14, 2019
054d6e5
add error handling - #155
dz-1 Feb 14, 2019
6a76da6
complete user view - #155
dz-1 Feb 20, 2019
9045079
complete 'token' view - #155
dz-1 Feb 21, 2019
4d25cff
fix styling - #155
dz-1 Feb 22, 2019
47adfb1
complete key view - #155
dz-1 Feb 22, 2019
066afaf
Merge remote-tracking branch 'origin/develop' into ui-dev
dz-1 Feb 22, 2019
6347638
update mariadb config and fix defects - #155
dz-1 Feb 22, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions client/src/test/resources/config/handler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ handlers:
- com.networknt.audit.AuditHandler@audit
- com.networknt.sanitizer.SanitizerHandler@sanitizer
- com.networknt.openapi.ValidatorHandler@validator
- com.networknt.cors.CorsHttpHandler@cors
# Customer business domain specific cross-cutting concerns handlers
# - com.example.validator.CustomizedValidator@custvalidator
# Framework endpoint handlers
Expand Down Expand Up @@ -73,8 +74,13 @@ chains:
- audit
- sanitizer
- validator
- cors

paths:
- path: '/oauth2/client'
method: 'options'
exec:
- cors
- path: '/oauth2/client'
method: 'post'
exec:
Expand All @@ -90,6 +96,10 @@ paths:
exec:
- default
- com.networknt.oauth.client.handler.Oauth2ClientGetHandler
- path: '/oauth2/client/{clientId}'
method: 'options'
exec:
- cors
- path: '/oauth2/client/{clientId}'
method: 'delete'
exec:
Expand Down
12 changes: 12 additions & 0 deletions client/src/test/resources/config/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ servers:
- url: 'https://oauth2.networknt.com'
paths:
/oauth2/client:
options:
description: Return permissions
operationId: checkPermisson
responses:
'200':
description: Successful response
post:
description: Return a client object
operationId: createClient
Expand Down Expand Up @@ -79,6 +85,12 @@ paths:
- client_auth:
- oauth.client.r
'/oauth2/client/{clientId}':
options:
description: Return permissions
operationId: checkPermisson
responses:
'200':
description: Successful response
delete:
description: Delete a client by Id
operationId: deleteClient
Expand Down
10 changes: 10 additions & 0 deletions db/mariadb/config/oauth2-client/handler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ handlers:
- com.networknt.audit.AuditHandler@audit
- com.networknt.sanitizer.SanitizerHandler@sanitizer
- com.networknt.openapi.ValidatorHandler@validator
- com.networknt.cors.CorsHttpHandler@cors
# Customer business domain specific cross-cutting concerns handlers
# - com.example.validator.CustomizedValidator@custvalidator
# Framework endpoint handlers
Expand Down Expand Up @@ -73,8 +74,13 @@ chains:
- audit
- sanitizer
- validator
- cors

paths:
- path: '/oauth2/client'
method: 'options'
exec:
- cors
- path: '/oauth2/client'
method: 'post'
exec:
Expand All @@ -90,6 +96,10 @@ paths:
exec:
- default
- com.networknt.oauth.client.handler.Oauth2ClientGetHandler
- path: '/oauth2/client/{clientId}'
method: 'options'
exec:
- cors
- path: '/oauth2/client/{clientId}'
method: 'delete'
exec:
Expand Down
12 changes: 12 additions & 0 deletions db/mariadb/config/oauth2-client/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ servers:
- url: 'https://oauth2.networknt.com'
paths:
/oauth2/client:
options:
description: Return permissions
operationId: checkPermisson
responses:
'200':
description: Successful response
post:
description: Return a client object
operationId: createClient
Expand Down Expand Up @@ -79,6 +85,12 @@ paths:
- client_auth:
- oauth.client.r
'/oauth2/client/{clientId}':
options:
description: Return permissions
operationId: checkPermisson
responses:
'200':
description: Successful response
delete:
description: Delete a client by Id
operationId: deleteClient
Expand Down
Binary file modified db/mariadb/config/oauth2-client/server.keystore
Binary file not shown.
Binary file modified db/mariadb/config/oauth2-client/server.truststore
Binary file not shown.
Binary file modified db/mariadb/config/oauth2-code/server.keystore
Binary file not shown.
Binary file modified db/mariadb/config/oauth2-code/server.truststore
Binary file not shown.
6 changes: 6 additions & 0 deletions db/mariadb/config/oauth2-key/handler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ handlers:
- com.networknt.audit.AuditHandler@audit
- com.networknt.sanitizer.SanitizerHandler@sanitizer
- com.networknt.openapi.ValidatorHandler@validator
- com.networknt.cors.CorsHttpHandler@cors
# Customer business domain specific cross-cutting concerns handlers
# - com.example.validator.CustomizedValidator@custvalidator
# Framework endpoint handlers
Expand All @@ -64,8 +65,13 @@ chains:
- audit
- sanitizer
- validator
- cors

paths:
- path: '/oauth2/key/{keyId}'
method: 'options'
exec:
- cors
- path: '/oauth2/key/{keyId}'
method: 'get'
exec:
Expand Down
6 changes: 6 additions & 0 deletions db/mariadb/config/oauth2-key/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ servers:
- url: 'https://oauth2.networknt.com'
paths:
'/oauth2/key/{keyId}':
options:
description: Return permissions
operationId: checkPermisson
responses:
'200':
description: Successful response
get:
description: Get a key by Id
operationId: getKeyById
Expand Down
Binary file modified db/mariadb/config/oauth2-key/server.keystore
Binary file not shown.
Binary file modified db/mariadb/config/oauth2-key/server.truststore
Binary file not shown.
10 changes: 10 additions & 0 deletions db/mariadb/config/oauth2-service/handler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ handlers:
- com.networknt.audit.AuditHandler@audit
- com.networknt.sanitizer.SanitizerHandler@sanitizer
- com.networknt.openapi.ValidatorHandler@validator
- com.networknt.cors.CorsHttpHandler@cors
# Customer business domain specific cross-cutting concerns handlers
# - com.example.validator.CustomizedValidator@custvalidator
# Framework endpoint handlers
Expand Down Expand Up @@ -71,8 +72,13 @@ chains:
- audit
- sanitizer
- validator
- cors

paths:
- path: '/oauth2/service'
method: 'options'
exec:
- cors
- path: '/oauth2/service'
method: 'post'
exec:
Expand All @@ -88,6 +94,10 @@ paths:
exec:
- default
- com.networknt.oauth.service.handler.Oauth2ServiceGetHandler
- path: '/oauth2/service/{serviceId}'
method: 'options'
exec:
- cors
- path: '/oauth2/service/{serviceId}'
method: 'delete'
exec:
Expand Down
12 changes: 12 additions & 0 deletions db/mariadb/config/oauth2-service/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ servers:
- url: 'https://oauth2.networknt.com'
paths:
/oauth2/service:
options:
description: Return permissions
operationId: checkPermisson
responses:
'200':
description: Successful response
post:
description: Return a service object
operationId: createService
Expand Down Expand Up @@ -79,6 +85,12 @@ paths:
- service_auth:
- oauth.service.r
'/oauth2/service/{serviceId}':
options:
description: Return permissions
operationId: checkPermisson
responses:
'200':
description: Successful response
delete:
description: Delete a service by Id
operationId: deleteService
Expand Down
Binary file modified db/mariadb/config/oauth2-service/server.keystore
Binary file not shown.
Binary file modified db/mariadb/config/oauth2-service/server.truststore
Binary file not shown.
6 changes: 6 additions & 0 deletions db/mariadb/config/oauth2-token/handler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ handlers:
- com.networknt.audit.AuditHandler@audit
- com.networknt.sanitizer.SanitizerHandler@sanitizer
- com.networknt.openapi.ValidatorHandler@validator
- com.networknt.cors.CorsHttpHandler@cors
# Customer business domain specific cross-cutting concerns handlers
# - com.example.validator.CustomizedValidator@custvalidator
# Framework endpoint handlers
Expand All @@ -66,8 +67,13 @@ chains:
- audit
- sanitizer
- validator
- cors

paths:
- path: '/oauth2/token'
method: 'options'
exec:
- cors
- path: '/oauth2/token'
method: 'post'
exec:
Expand Down
6 changes: 6 additions & 0 deletions db/mariadb/config/oauth2-token/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ servers:
- url: 'https://oauth2.networknt.com'
paths:
/oauth2/token:
options:
description: Return permissions
operationId: checkPermisson
responses:
'200':
description: Successful response
post:
description: JSON object that contains access token
operationId: postToken
Expand Down
Binary file modified db/mariadb/config/oauth2-token/server.keystore
Binary file not shown.
Binary file modified db/mariadb/config/oauth2-token/server.truststore
Binary file not shown.
10 changes: 10 additions & 0 deletions db/mariadb/config/oauth2-user/handler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ handlers:
- com.networknt.audit.AuditHandler@audit
- com.networknt.sanitizer.SanitizerHandler@sanitizer
- com.networknt.openapi.ValidatorHandler@validator
- com.networknt.cors.CorsHttpHandler@cors
# Customer business domain specific cross-cutting concerns handlers
# - com.example.validator.CustomizedValidator@custvalidator
# Framework endpoint handlers
Expand Down Expand Up @@ -69,8 +70,13 @@ chains:
- audit
- sanitizer
- validator
- cors

paths:
- path: '/oauth2/user'
method: 'options'
exec:
- cors
- path: '/oauth2/user'
method: 'get'
exec:
Expand All @@ -86,6 +92,10 @@ paths:
exec:
- default
- com.networknt.oauth.user.handler.Oauth2UserPutHandler
- path: '/oauth2/user/{userId}'
method: 'options'
exec:
- cors
- path: '/oauth2/user/{userId}'
method: 'delete'
exec:
Expand Down
Binary file modified db/mariadb/config/oauth2-user/server.keystore
Binary file not shown.
Binary file modified db/mariadb/config/oauth2-user/server.truststore
Binary file not shown.
10 changes: 10 additions & 0 deletions db/mysql/config/oauth2-client/handler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ handlers:
- com.networknt.audit.AuditHandler@audit
- com.networknt.sanitizer.SanitizerHandler@sanitizer
- com.networknt.openapi.ValidatorHandler@validator
- com.networknt.cors.CorsHttpHandler@cors
# Customer business domain specific cross-cutting concerns handlers
# - com.example.validator.CustomizedValidator@custvalidator
# Framework endpoint handlers
Expand Down Expand Up @@ -73,8 +74,13 @@ chains:
- audit
- sanitizer
- validator
- cors

paths:
- path: '/oauth2/client'
method: 'options'
exec:
- cors
- path: '/oauth2/client'
method: 'post'
exec:
Expand All @@ -90,6 +96,10 @@ paths:
exec:
- default
- com.networknt.oauth.client.handler.Oauth2ClientGetHandler
- path: '/oauth2/client/{clientId}'
method: 'options'
exec:
- cors
- path: '/oauth2/client/{clientId}'
method: 'delete'
exec:
Expand Down
12 changes: 12 additions & 0 deletions db/mysql/config/oauth2-client/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ servers:
- url: 'https://oauth2.networknt.com'
paths:
/oauth2/client:
options:
description: Return permissions
operationId: checkPermisson
responses:
'200':
description: Successful response
post:
description: Return a client object
operationId: createClient
Expand Down Expand Up @@ -79,6 +85,12 @@ paths:
- client_auth:
- oauth.client.r
'/oauth2/client/{clientId}':
options:
description: Return permissions
operationId: checkPermisson
responses:
'200':
description: Successful response
delete:
description: Delete a client by Id
operationId: deleteClient
Expand Down
Binary file modified db/mysql/config/oauth2-client/server.keystore
Binary file not shown.
Binary file modified db/mysql/config/oauth2-client/server.truststore
Binary file not shown.
Binary file modified db/mysql/config/oauth2-code/server.keystore
Binary file not shown.
Binary file modified db/mysql/config/oauth2-code/server.truststore
Binary file not shown.
6 changes: 6 additions & 0 deletions db/mysql/config/oauth2-key/handler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ handlers:
- com.networknt.audit.AuditHandler@audit
- com.networknt.sanitizer.SanitizerHandler@sanitizer
- com.networknt.openapi.ValidatorHandler@validator
- com.networknt.cors.CorsHttpHandler@cors
# Customer business domain specific cross-cutting concerns handlers
# - com.example.validator.CustomizedValidator@custvalidator
# Framework endpoint handlers
Expand All @@ -64,8 +65,13 @@ chains:
- audit
- sanitizer
- validator
- cors

paths:
- path: '/oauth2/key/{keyId}'
method: 'options'
exec:
- cors
- path: '/oauth2/key/{keyId}'
method: 'get'
exec:
Expand Down
6 changes: 6 additions & 0 deletions db/mysql/config/oauth2-key/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ servers:
- url: 'https://oauth2.networknt.com'
paths:
'/oauth2/key/{keyId}':
options:
description: Return permissions
operationId: checkPermisson
responses:
'200':
description: Successful response
get:
description: Get a key by Id
operationId: getKeyById
Expand Down
Binary file modified db/mysql/config/oauth2-key/server.keystore
Binary file not shown.
Binary file modified db/mysql/config/oauth2-key/server.truststore
Binary file not shown.
Loading