Skip to content

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.

[#1015] docs: Add OAS of security schemes (#1048)

mchades47bbf7f03bcf
diff --git a/docs/open-api/openapi.yaml b/docs/open-api/openapi.yaml
index ccf8486401..1797d72459 100644
--- a/docs/open-api/openapi.yaml
+++ b/docs/open-api/openapi.yaml
@@ -32,7 +32,8 @@ servers:
default: "api"
security:
- - BearerAuth: []
+ - OAuth2WithJWT: [serviceAudience]
+ - BasicAuth: []
paths:
/metalakes:
@@ -240,7 +241,17 @@ components:
type: string
securitySchemes:
- # todo: add OAuth2 security schema
- BearerAuth:
+
+ OAuth2WithJWT:
+ type: oauth2
+ description: OAuth2 with JWT
+ flows:
+ clientCredentials:
+ tokenUrl: https://external-oauth-server.com/token
+ scopes:
+ serviceAudience: The audience name when Gravitino uses OAuth as the authenticator.
+
+ BasicAuth:
type: http
- scheme: bearer
+ scheme: basic
+