Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access denied error when using accessToken for authentication #270

Open
AdityaUdasi opened this issue May 22, 2024 · 0 comments
Open

Access denied error when using accessToken for authentication #270

AdityaUdasi opened this issue May 22, 2024 · 0 comments

Comments

@AdityaUdasi
Copy link

Hi ,
I am trying to connect to the trino server using blow code ,
and i am getting mising access token error.

can someone please help me.
do Rpresto support JWT (access token ) based authentication ?

code

install.packages("DBI")
install.packages("RPresto")
library(DBI)
library(RPresto)
con.trino <- DBI::dbConnect(
RPresto::Presto(),
use.trino.headers = TRUE,
host = "https://tcp.mytriniourl.com",
port = 7432,
user = "my_user",
schema = "my_schema", # Replace 'your_schema' with your schema name
catalog = "my_catalog",
extra.credentials = "my_access_token"
)

Error :

Error in .stop.with.error.message(.content) :
Query error - 6b4842eb-1726-4a9d-b0ee-0358a50433b7 failed: Missing accessToken
Calls: ... checkContentState -> stopWithErrorMessage -> .stop.with.error.message
Execution halted

trino

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant