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

Support proxying /oauth2 to enable OAuth authentication #190

Merged
merged 1 commit into from Apr 10, 2023

Conversation

Pluies
Copy link
Contributor

@Pluies Pluies commented Jan 6, 2023

Hi folks,

Thank you for open-sourcing the presto-gateway, it's a very nifty piece of software!

We're currently using it with Trino backends and OAuth2 authentication, which works very well on its own but breaks when clusters are put behind the presto-gateway, as OAuth2 does an HTTP callback to Trino under /oauth2. This returns a 404 as the presto-gateway doesn't know about this path and treats is as an error.

This small PR whitelists paths starting with /oauth2 and instructs presto-gateway to reverse-proxy it to a backend, enabling authenticating via OAuth2.

Let me know if there's anything else I can do to make this PR more likely to land, as we're happy using upstream rather than a fork. :)

Thank you!

@Pluies
Copy link
Contributor Author

Pluies commented Jan 6, 2023

^ I've just signed the CLA fwiw.

@akhurana001
Copy link
Contributor

🔨

@akhurana001
Copy link
Contributor

Can you push a dummy commit to retry the cla check ?

@akhurana001 akhurana001 reopened this Apr 10, 2023
@akhurana001 akhurana001 merged commit 7269bcf into lyft:master Apr 10, 2023
1 check passed
willmostly pushed a commit to starburstdata/presto-gateway that referenced this pull request Jun 7, 2023
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

Successfully merging this pull request may close these issues.

None yet

2 participants