Having trouble setting up the database connection to trino on superset #32521
Unanswered
anushreegawdeAP
asked this question in
Q&A / Help
Replies: 1 comment 1 reply
-
@joaoferrao @betodealmeida any pointers would be highly appreciated! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I asked sometime ago some questions about setting up OAuth2.0 integration for Trino with Okta in Superset, following the guidance from this PR (#30081). We have got past the username part and now superset recognizes email as username. I am having trouble now setting up the database connection. It keeps throwing unauthorized error.
My current setup looks like this:
trino_oauth
DATABASE_OAUTH2_REDIRECT_URI = "http://localhost:8088/api/v1/database/oauth2/"
DATABASE_OAUTH2_JWT_ALGORITHM = "RS256"
DATABASE_OAUTH2_CLIENTS = {
'HSH Trino Oauth': {
'id': '<trino_app_client_id>',
'secret': '<trino_app_client_secret>',
'scope': 'openid email offline_access roles profile',
'redirect_uri': 'http://localhost:8088/api/v1/database/oauth2/',
'authorization_request_uri': 'https://example.okta.com/oauth2/v1/authorize',
'token_request_uri': 'https://example.okta.com/oauth2/v1/token'
'request_content_type': 'json'
}
}
{"connect_args":{"http_scheme":"https"}}
Impersonate: true is in place as well and UI shows the correct configs. Any guidance or insights on further troubleshooting would be greatly appreciated!
The redirect uri gives 500 error. So not sure what should be changed in that case.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions