databricks-sdk-go
databricks-sdk-go copied to clipboard
[ISSUE] Cannot Create obo token
trafficstars
Description Command for creating obo token returns error
Reproduction databricks token-management create-obo-token {service_principal_id} Using workspace profile: prod
Expected behavior I expect a token from the referenced service principal.
Is it a regression? I don't know.
Debug Logs Request log:
POST /api/2.0/token-management/on-behalf-of/tokens
> * Host:
> * Accept: application/json
> * Authorization: REDACTED
> * Content-Type: application/json
> * User-Agent: cli/0.219.0 databricks-sdk-go/0.39.0 go/1.21.9 os/linux cmd/token-management_create-obo-token auth/pat
> {
> "application_id": "fb58f866-62b3-4e08-8f3f-c599db43ffe2"
> }
< HTTP/2.0 403 Forbidden
< * Content-Length: 52
< * Content-Type: application/json; charset=utf-8
< * Date: Tue, 24 Sep 2024 18:31:26 GMT
< * Server: databricks
< * Vary: Accept-Encoding
< * X-Databricks-Reason-Phrase: Invalid access token.
< * X-Request-Id: acf159a1-5fb8-4e71-8ddb-38bd87f81393
< {
< "error_code": 403,
< "message": "Invalid access token."
< }
Other Information
- OS: Ubuntu
- Version: 22.04.4 LTS
Additional context The prior obo token started failing before we got this issue.