Skip to content

Commit

Permalink
Fix: Configure security for APIs
Browse files Browse the repository at this point in the history
Signed-off-by: George J Padayatti <george.padayatti@igrant.io>
  • Loading branch information
georgepadayatti committed Apr 4, 2024
1 parent 0103aaf commit 0f9dce5
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 34 deletions.
29 changes: 12 additions & 17 deletions openapi/bundled.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,8 @@ paths:
responses:
'200':
description: OK
security:
- BearerAuth: []
tags:
- config
- webhook
/webhook/topic/present_proof/:
post:
summary: Create webhook present proof
Expand Down Expand Up @@ -887,10 +885,8 @@ paths:
responses:
'200':
description: OK
security:
- BearerAuth: []
tags:
- config
- webhook
/webhook/topic/published_data_disclosure_agreement/:
post:
summary: Create webhook data disclosure agreement
Expand Down Expand Up @@ -1024,10 +1020,8 @@ paths:
responses:
'200':
description: OK
security:
- BearerAuth: []
tags:
- config
- webhook
'/service/data-source/{dataSourceId}/coverimage':
get:
deprecated: false
Expand All @@ -1038,8 +1032,6 @@ paths:
responses:
'200':
headers: {}
security:
- BearerAuth: []
tags:
- service
'/service/data-source/{dataSourceId}/logoimage':
Expand All @@ -1057,8 +1049,6 @@ paths:
responses:
'200':
headers: {}
security:
- BearerAuth: []
tags:
- service
/service/data-sources/:
Expand Down Expand Up @@ -1147,6 +1137,8 @@ paths:
description: bad input parameter
tags:
- config
security:
- BearerAuth: []
/config/open-api/url:
put:
summary: Update Open API URL
Expand Down Expand Up @@ -1230,6 +1222,8 @@ paths:
description: bad input parameter
tags:
- config
security:
- BearerAuth: []
'/config/connection/{connectionId}/':
delete:
summary: Delete connection
Expand Down Expand Up @@ -1370,6 +1364,8 @@ paths:
description: bad input parameter
tags:
- config
security:
- BearerAuth: []
/config/data-source/verification/:
post:
summary: Create verification
Expand Down Expand Up @@ -1687,8 +1683,6 @@ paths:
access:
type: string
type: object
security:
- BearerAuth: []
tags:
- onboard
/onboard/register/:
Expand Down Expand Up @@ -1716,8 +1710,6 @@ paths:
application/json:
schema:
$ref: '#/paths/~1config~1admin~1/get/responses/200/content/application~1json/schema'
security:
- BearerAuth: []
tags:
- onboard
/onboard/token/refresh/:
Expand Down Expand Up @@ -1763,3 +1755,6 @@ tags:
- description: This consists of endpoints towards authentication and authorisation.
name: onboard
x-tag-expanded: true
- description: This consists of endpoints towards webhook.
name: webhook
x-tag-expanded: true
3 changes: 3 additions & 0 deletions openapi/index.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,6 @@ tags:
- description: This consists of endpoints towards authentication and authorisation.
name: onboard
x-tag-expanded: true
- description: This consists of endpoints towards webhook.
name: webhook
x-tag-expanded: true
2 changes: 2 additions & 0 deletions openapi/paths/configListConnection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ responses:
description: bad input parameter
tags:
- config
security:
- BearerAuth: []
2 changes: 2 additions & 0 deletions openapi/paths/configListDataDisclosureAgreement.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,5 @@ responses:
description: bad input parameter
tags:
- config
security:
- BearerAuth: []
2 changes: 2 additions & 0 deletions openapi/paths/configListVerificationTemplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ responses:
description: bad input parameter
tags:
- config
security:
- BearerAuth: []
4 changes: 1 addition & 3 deletions openapi/paths/createWebhookConnection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,5 @@ requestBody:
responses:
"200":
description: "OK"
security:
- BearerAuth: []
tags:
- config
- webhook
4 changes: 1 addition & 3 deletions openapi/paths/createWebhookDataDisclosureAgreement.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,5 @@ requestBody:
responses:
"200":
description: "OK"
security:
- BearerAuth: []
tags:
- config
- webhook
4 changes: 1 addition & 3 deletions openapi/paths/createWebhookPresentProof.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,5 @@ requestBody:
responses:
"200":
description: "OK"
security:
- BearerAuth: []
tags:
- config
- webhook
2 changes: 0 additions & 2 deletions openapi/paths/onboardLogin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,5 @@ responses:
access:
type: string
type: object
security:
- BearerAuth: []
tags:
- onboard
2 changes: 0 additions & 2 deletions openapi/paths/onboardRegister.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,5 @@ responses:
application/json:
schema:
$ref: "../definitions/OrganisationAdmin.yaml"
security:
- BearerAuth: []
tags:
- onboard
2 changes: 0 additions & 2 deletions openapi/paths/serviceReadDataSourceCoverImage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@ parameters:
responses:
'200':
headers: {}
security:
- BearerAuth: []
tags:
- service
2 changes: 0 additions & 2 deletions openapi/paths/serviceReadDataSourceLogoImage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,5 @@ parameters:
responses:
"200":
headers: {}
security:
- BearerAuth: []
tags:
- service

0 comments on commit 0f9dce5

Please sign in to comment.