rodrigopv opened a new pull request, #549: URL: https://github.com/apache/iceberg-go/pull/549
This PR adds support for a --token parameter to enable direct Bearer token authentication with Iceberg REST catalogs, bypassing the OAuth flow when a valid token is already available. ## Changes - Added --token CLI parameter: Accepts a pre-issued Bearer token for direct authentication - Authentication priority: When both --token and --credential are provided, --token takes precedence - Backward compatibility: Existing --credential OAuth flow remains unchanged and fully supported ## Example `go run ./cmd/iceberg --uri https://catalog.cloudflarestorage.com/$ICEBERG_CATALOG_PATH --token $CATALOG_TOKEN --warehouse $WAREHOUSE list ` output: ``` ┌─────────┐ | IDs | | ------- | | default | └─────────┘ ``` ## API Impact This change only affects the CLI interface. The underlying REST catalog API already supports both authentication methods through rest.WithOAuthToken() and rest.WithCredential() options. -- 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]
