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

DRILL-8220: Add User Translation Support for OAuth Enabled Plugins #2544

Merged
merged 20 commits into from May 16, 2022

Conversation

cgivre
Copy link
Contributor

@cgivre cgivre commented May 11, 2022

DRILL-8220: Add User Translation Support for OAuth Enabled Plugins

Description

This PR adds support for individual users to provide their own credentials for plugins that use OAuth 2.0 as a means of authorization and authentication. Currently, only the HTTP storage plugin supports OAuth, however, this PR moves some of the core features out of the HTTP plugin so that other plugins can access this.

As a part of this work, this PR adds additional REST endpoints to the credentials page.

  • Finish unit tests
  • Write documentation

Documentation

Will add complete documentation once final version is merged. The only thing a user will notice is that in the Credentials page, if a plugin uses OAuth2.0, the button will say Authorize instead of Add Credentials.

Testing

Manually tested and added unit tests.

@cgivre cgivre added enhancement PRs that add a new functionality to Drill doc-impacting PRs that affect the documentation labels May 11, 2022
@cgivre cgivre self-assigned this May 11, 2022
@cgivre cgivre requested a review from jnturton May 13, 2022 14:39
@cgivre cgivre marked this pull request as ready for review May 15, 2022 17:26
@cgivre
Copy link
Contributor Author

cgivre commented May 16, 2022

@jnturton Thanks for the review comments. I changed the getActiveUser() function to getQueryUser(). Is there anything else you'd like addressed?

@jnturton jnturton self-requested a review May 16, 2022 10:45
@jnturton jnturton merged commit 58391fe into apache:master May 16, 2022
@cgivre cgivre deleted the oauth_per_user_creds branch May 16, 2022 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc-impacting PRs that affect the documentation enhancement PRs that add a new functionality to Drill
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants