Skip to content

Commit

Permalink
Add securitySchemes in openapi spec (#10652)
Browse files Browse the repository at this point in the history
openapi-generator relies on this component to generate auth code in
some of the clients.
  • Loading branch information
QP Hou authored Sep 4, 2020
1 parent 6e3d7b6 commit 8cb4fc1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions airflow/api_connexion/openapi/v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2745,6 +2745,17 @@ components:
# Reusable callbacks
callbacks: {}

securitySchemes:
Basic:
type: http
scheme: basic
GoogleOpenId:
type: openIdConnect
openIdConnectUrl: https://accounts.google.com/.well-known/openid-configuration
Kerberos:
type: http
scheme: negotiate

# The API will provide support for plugins to support various authorization mechanisms.
# Detailed information will be available in the plugin specification.
security: []
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,6 +553,7 @@ def _get_rst_filepath_from_path(filepath: str):
'spec': OPENAPI_FILE,
'opts': {
'hide-hostname': True,
'no-auto-auth': True,
}
},
]
Expand Down

0 comments on commit 8cb4fc1

Please sign in to comment.