bryanck commented on code in PR #4771:
URL: https://github.com/apache/iceberg/pull/4771#discussion_r873077815


##########
open-api/rest-catalog-open-api.yaml:
##########
@@ -120,6 +122,32 @@ paths:
         5XX:
           $ref: '#/components/responses/ServerErrorResponse'
 
+  /v1/oauth/token:
+
+    post:
+      tags:
+        - Auth API
+      summary: Get a token using an OAuth2 flow
+      operationId: getToken
+      description:
+        Exchange credentials for a token using the OAuth2 client credentials 
flow or token exchange.
+      requestBody:
+        content:
+          application/json:
+            schema:
+              $ref: '#/components/schemas/TokenRequest'
+      responses:
+        200:
+          $ref: '#/components/responses/TokenResponse'
+        400:
+          $ref: '#/components/responses/BadRequestErrorResponse'
+        401:

Review Comment:
   The OAuth2 RFC also specifies what the error response body should look like. 
We'd need to add an `error` field containing one of the codes if we want to be 
strict about that.



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to