Erigara opened a new pull request, #1393: URL: https://github.com/apache/iceberg-rust/pull/1393
## Which issue does this PR close? <!-- We generally require a GitHub issue to be filed for all bug fixes and enhancements and this helps us generate change logs for our releases. You can link an issue to this PR using the GitHub syntax. For example `Closes #123` indicates that this PR will close issue #123. --> PR solves error when trying to authenticate through oauth2 endpoint. ``` Error: Unexpected, context: { code: 400 Bad Request, operation: auth, url: http://127.0.0.1:8080/realms/iceberg/protocol/openid-connect/token, json: {"error":"invalid_request","error_description":"Missing form parameter: grant_type"} } => Received unexpected response, source: invalid type: string "invalid_request", expected struct ErrorModel at line 1 column 26 Caused by: invalid type: string "invalid_request", expected struct ErrorModel at line 1 column 26 ``` - Closes #. ## What changes are included in this PR? <!-- Provide a summary of the modifications in this PR. List the main changes such as new features, bug fixes, refactoring, or any other updates. --> - override `content-type` header to `application/x-www-form-urlencoded` for oauth2 authenticate requests ## Are these changes tested? yes: - tested it manually (through `keycloak`) - existing tests in repo <!-- Specify what test covers (unit test, integration test, etc.). If tests are not included in your PR, please explain why (for example, are they covered by existing tests)? --> -- 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: issues-unsubscr...@iceberg.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@iceberg.apache.org For additional commands, e-mail: issues-h...@iceberg.apache.org