Repository navigation
Send scope in client credentials token request - #45
dbekasow-dmi wants to merge 1 commit into
Conversation
|
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to cla@trino.io. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla |
|
@dbekasow-dmi Thank you for your contribution! This is pretty close to what we need for it to be mergeable. Are you willing to sign the Contributor License Agreement for the Trino Software Foundation? If so, I can probably make a small tweak and get this feature merged for you. Whether you're willing or not, please let me know. I think you found a bug in how scopes are handled between various auth flows and I would like to get it fixed. |
|
This is partially fixed by #47 and released in https://github.com/trinodb/trino-odbc/releases/tag/v0.0.8. We need to figure out how to handle JWS (Javascript Web Signature) which are encrypted and are not formatted into header, payload, and signature like a typical JWT. |
Problem:
refreshClientCredAuthurl-encodes the configured scope but never writes it to the POST body. Entra rejects that with AADSTS90014. The empty token that comes back reachesparseAccessToken, which indexesjwtComponents[1]on an empty vector — the process dies with an access violation insideSQLExecDirect.Changes:
scopeto the token requestparseAccessTokenfor malformed tokensSQL_ERRORinstead of a crashTested: Trino 483 with Entra ID, Windows x64. Driver now logs
Client cred auth completed successfully.