Skip to content

Access denied error when using accessToken for authentication #270

@AdityaUdasi

Description

@AdityaUdasi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions