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

NIFI-2059: Ensure that we properly pass along proxied entities in HTT… #572

Closed
wants to merge 1 commit into from

Conversation

markap14
Copy link
Contributor

…P headers when secure and ensure that we don't keep creating new Root Group ID's once we've created one, even after restart

// If the user is authenticated, add them as a proxied entity so that when the receiving NiFi receives the request,
// it knows that we are acting as a proxy on behalf of the current user.
final NiFiUser user = NiFiUserUtils.getNiFiUser();
if (user != null && !user.equals(NiFiUser.ANONYMOUS)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Should use user.isAnonymous() to detect anonymous user.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good call

@mcgilman
Copy link
Contributor

Reviewing...

…P headers when secure and ensure that we don't keep creating new Root Group ID's once we've created one, even after restart
@markap14
Copy link
Contributor Author

@mcgilman the PR has been updated to incorporate the feedback you provided. Thanks!

@mcgilman
Copy link
Contributor

Looks great @markap14! This has been merged to master.

@asfgit asfgit closed this in fd5327e Jun 23, 2016
@markap14 markap14 deleted the NIFI-2059 branch June 27, 2016 13:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants