Repository navigation
Conversation
flyrain
force-pushed
the
yf/docs-190-management-oauth
branch
from
November 19, 2026 03:24
54b866a to
a65b4b0
Compare
flyrain
commented
Nov 19, 2026
| implicit: | ||
| authorizationUrl: "{scheme}://{host}/api/v1/oauth/tokens" | ||
| clientCredentials: | ||
| tokenUrl: /api/catalog/v1/oauth/tokens |
Contributor
Author
There was a problem hiding this comment.
This is the correct token url, check the regtest example here,
polaris/regtests/run_spark_sql.sh
Line 59 in dc8eb48
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
The OAuth specification omits supported role scopes and does not clarify that externally authenticated realms must use their identity provider’s token URL.
2 open issues
What changed in this PR
This PR updates the Management API’s OpenAPI authentication declaration to describe the built-in client-credentials flow. The specification supplies the unreleased API reference and can be consumed by client generators.
Changes:
- Replaces the implicit OAuth flow with
clientCredentials. - Replaces
authorizationUrlwithtokenUrl: /api/catalog/v1/oauth/tokens.
| File | Description |
|---|---|
spec/polaris-management-service.yml |
Updates the OAuth flow type and token endpoint declaration. |
Review effort: Balanced
| @@ -814,8 +814,8 @@ components: | |||
| type: oauth2 | |||
| description: Uses OAuth 2 with client credentials flow | |||
| authorizationUrl: "{scheme}://{host}/api/v1/oauth/tokens" | ||
| clientCredentials: | ||
| tokenUrl: /api/catalog/v1/oauth/tokens | ||
| scopes: {} |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

The Management API specification describes client credentials but declares an implicit OAuth flow and an authorization URL that the built-in service does not serve. The specification now declares
clientCredentialswithtokenUrl: /api/catalog/v1/oauth/tokens. The unreleased Management API reference renders this file directly, and client generators can consume the corrected flow.Parsed the specification, checked the flow and token endpoint against the authentication example, and verified that the unreleased reference renders this schema.
Verification build
Checklist
AI assistance was used to prepare and check this change.