question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Supports the parameter extracredentials

See original GitHub issue

It introduced a new security feature called extraCredentials since release 302:

https://prestosql.io/docs/current/release/release-302.html

Add support for client-provided extra credentials that can be utilized by connectors. (https://github.com/prestosql/presto/issues/124)

I’ve seen this new parameter extraCredentials has been documented and implemented for the JDBC driver but haven’t seen such thing in the Python SDK.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:3
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
findepicommented, Feb 16, 2020

Currently one has to use workaround:

presto.dbapi.connect(...., http_headers={'X-Presto-Extra-Credential': 'test.token.foo=bar}

note: exact encoding of extra credentials is subject to improvement in https://github.com/prestosql/presto/pull/2780

@zyxue

1reaction
matt12eaglescommented, Oct 13, 2021

ANDDD @shawnzhu you got the key there!! Need http-headers!!! THANK YOU SO MUCH!! Beyond excited honestly!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Supports the parameter extracredentials · Issue #6 - GitHub
I've seen this new parameter extraCredentials has been documented and implemented for the JDBC driver but haven't seen such thing in the Python...
Read more >
JDBC Driver — Presto 0.278.1 Documentation
The driver supports various parameters that may be set as URL parameters or as properties passed to ... The extraCredentials is a list...
Read more >
Passing parameter and value in Presto JDBC Connection Url
Presto JDBC does not support arbitrary parameters in JDBC connection URL. ... by a Presto connector, you can use extraCredentials parameter.
Read more >
JDBC driver — Trino 403 Documentation
The driver supports various parameters that may be set as URL parameters, ... Extra credentials for connecting to external services, specified as a...
Read more >
Password credential pass-through — Starburst Enterprise
Specifying username via extra credentials# ... Then add extraCredentials=arbitrary_username_id:external_user_login to the parameters used with the JDBC driver to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found