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

Add method to authorize native query using authentication result #14376

Merged
merged 6 commits into from
Jun 12, 2023

Conversation

findingrish
Copy link
Contributor

No description provided.

@findingrish findingrish marked this pull request as ready for review June 6, 2023 18:17
@findingrish findingrish changed the title Add method to authorize using authentication result Add method to authorize native query using authentication result Jun 6, 2023
* @param authenticationResult authentication result indicating identity of the requester
* @return authorization result of requester
*/
public Access authorize(AuthenticationResult authenticationResult)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please include some unit tests for this new method, in case it's called directly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the existing tests for authorize(HttpServletRequest) to also test this method.

@findingrish findingrish requested a review from gianm June 8, 2023 04:39
@abhishekagarwal87 abhishekagarwal87 merged commit 8b212e7 into apache:master Jun 12, 2023
70 of 71 checks passed
findingrish added a commit to findingrish/druid that referenced this pull request Jun 20, 2023
abhishekagarwal87 pushed a commit that referenced this pull request Jun 21, 2023
@abhishekagarwal87 abhishekagarwal87 added this to the 27.0 milestone Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants