NIFI-655:

- Using the user identity provided by the login identity provider.
This commit is contained in:
Matt Gilman 2015-11-17 19:01:07 -05:00
parent 4bb8b137f0
commit 16608aa850
1 changed files with 1 additions and 1 deletions

View File

@ -334,7 +334,7 @@ public class AccessResource extends ApplicationResource {
} }
// create the authentication token // create the authentication token
loginAuthenticationToken = new LoginAuthenticationToken(authenticationResponse.getUsername(), expiration); loginAuthenticationToken = new LoginAuthenticationToken(authenticationResponse.getIdentity(), expiration);
} catch (final InvalidLoginCredentialsException ilce) { } catch (final InvalidLoginCredentialsException ilce) {
throw new IllegalArgumentException("The supplied username and password are not valid.", ilce); throw new IllegalArgumentException("The supplied username and password are not valid.", ilce);
} catch (final IdentityAccessException iae) { } catch (final IdentityAccessException iae) {