NIFI-655: - Using the user identity provided by the login identity provider.
Project: http://git-wip-us.apache.org/repos/asf/nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/16608aa8 Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/16608aa8 Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/16608aa8 Branch: refs/heads/master Commit: 16608aa850c7e2e4b85342cb749f8a83bed54041 Parents: 4bb8b13 Author: Matt Gilman <[email protected]> Authored: Tue Nov 17 19:01:07 2015 -0500 Committer: Matt Gilman <[email protected]> Committed: Tue Nov 17 19:01:07 2015 -0500 ---------------------------------------------------------------------- .../src/main/java/org/apache/nifi/web/api/AccessResource.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/nifi/blob/16608aa8/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/AccessResource.java ---------------------------------------------------------------------- diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/AccessResource.java b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/AccessResource.java index 57de41d..8f4cd5a 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/AccessResource.java +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/AccessResource.java @@ -334,7 +334,7 @@ public class AccessResource extends ApplicationResource { } // create the authentication token - loginAuthenticationToken = new LoginAuthenticationToken(authenticationResponse.getUsername(), expiration); + loginAuthenticationToken = new LoginAuthenticationToken(authenticationResponse.getIdentity(), expiration); } catch (final InvalidLoginCredentialsException ilce) { throw new IllegalArgumentException("The supplied username and password are not valid.", ilce); } catch (final IdentityAccessException iae) {
