Skip to content

Commit

Permalink
auth: add bearer auth security scheme
Browse files Browse the repository at this point in the history
  • Loading branch information
uniqueg committed Oct 31, 2023
1 parent 21a555e commit 65f66e4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions pro_tes/api/security_schemes.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
components:
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
5 changes: 4 additions & 1 deletion pro_tes/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,14 @@ api:
- path:
- api/9e9c5aa.task_execution_service.openapi.yaml
- api/additional_logs.yaml
- api/security_schemes.yaml
add_operation_fields:
x-openapi-router-controller: ga4gh.tes.server
security:
- bearerAuth: []
add_security_fields:
x-bearerInfoFunc: foca.security.auth.validate_token
disable_auth: True
disable_auth: False
connexion:
strict_validation: True
# current specs have inconsistency, therefore disabling response validation
Expand Down

0 comments on commit 65f66e4

Please sign in to comment.