Skip to content

Commit 7b0bda9

Browse files
authored
Spec: Clarify auth responses in the REST spec. (apache#6251)
1 parent 6dab162 commit 7b0bda9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

open-api/rest-catalog-open-api.yaml

+9-2
Original file line numberDiff line numberDiff line change
@@ -506,10 +506,10 @@ paths:
506506

507507
The response contains both configuration and table metadata. The configuration, if non-empty is used
508508
as additional configuration for the table that overrides catalog configuration. For example, this
509-
configuration may change the FileIO implemented used for the table.
509+
configuration may change the FileIO implementation to be used for the table.
510510

511511

512-
The response also contains the table's full metadata.
512+
The response also contains the table's full metadata, matching the table metadata JSON file.
513513

514514

515515
The catalog configuration may contain credentials that should be used for subsequent requests for the
@@ -2385,6 +2385,13 @@ components:
23852385
securitySchemes:
23862386
OAuth2:
23872387
type: oauth2
2388+
description:
2389+
This scheme is used for OAuth2 authorization.
2390+
2391+
2392+
For unauthorized requests, services should return an appropriate 401 or
2393+
403 response. Implementations must not return altered success (200)
2394+
responses when a request is unauthenticated or unauthorized.
23882395
flows:
23892396
clientCredentials:
23902397
tokenUrl: /v1/oauth/tokens

0 commit comments

Comments
 (0)