mirror of https://github.com/apache/nifi.git
NIFI-655:
- Using the user identity provided by the login identity provider.
This commit is contained in:
parent
4bb8b137f0
commit
16608aa850
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue