Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding auth headers standardized in DRS #162

Open
wants to merge 1 commit into
base: develop-1.1
Choose a base branch
from
Open
Changes from all commits
Commits
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
31 changes: 29 additions & 2 deletions openapi/task_execution_service.openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,12 @@ info:

servers:
- url: /ga4gh/tes/v1

security:
- {}
- BasicAuth: []
- BearerAuth: []

paths:
/service-info:
get:
Expand Down Expand Up @@ -554,7 +560,7 @@ components:
backend_parameters_strict:
type: boolean
description: |-
If set to true, backends should fail the task if any backend_parameters
If set to true, backends should fail the task if any backend_parameters
key/values are unsupported, otherwise, backends should attempt to run the task
format: boolean
default: false
Expand Down Expand Up @@ -589,7 +595,7 @@ components:
tesResources_backend_parameters:
type: array
description: |-
Lists all tesResources.backend_parameters keys supported
Lists all tesResources.backend_parameters keys supported
by the service
items:
type: string
Expand Down Expand Up @@ -792,3 +798,24 @@ components:
items:
type: string
description: TaskLog describes logging information related to a Task.

securitySchemes:
BasicAuth:
type: http
scheme: basic
description: |
A valid authorization token must be passed in the 'Authorization' header,
e.g. "Basic ${token_string}"
BearerAuth:
type: http
scheme: bearer
description:
A valid authorization token must be passed in the 'Authorization' header,
e.g. "Bearer ${token_string}"
PassportAuth:
type: http
scheme: bearer
x-in: body
bearerFormat: JWT
description:
A valid GA4GH Passport must be passed in the body of an HTTP POST request as a tokens[] array.