ephraimbuddy commented on a change in pull request #15042:
URL: https://github.com/apache/airflow/pull/15042#discussion_r616885077
##########
File path: airflow/api_connexion/openapi/v1.yaml
##########
@@ -1572,6 +1572,196 @@ paths:
'404':
$ref: '#/components/responses/NotFound'
+ /auth-info:
+ get:
+ summary: Get site authentication information
+ x-openapi-router-controller:
airflow.api_connexion.endpoints.auth_endpoint
+ operationId: get_auth_info
+ tags: [Authentication]
+ responses:
+ '200':
+ description: Success.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/AuthInfo'
+
+ /auth/login:
+ post:
+ summary: Login user
+ x-openapi-router-controller:
airflow.api_connexion.endpoints.auth_endpoint
+ operationId: auth_login
+ tags: [Authentication]
+ requestBody:
+ required: true
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/AuthDBLoginForm'
+ responses:
+ '200':
+ description: Success.
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/JwtAuthAndUser'
+ '401':
+ $ref: '#/components/responses/Unauthenticated'
Review comment:
Since this is authentication endpoint, I'm making it return 401 whenever
it fails
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]