mirror of
https://github.com/apache/nifi.git
synced 2025-02-16 23:15:36 +00:00
NIFI-655:
- Fixing checkstyle issues.
This commit is contained in:
parent
d47c00f00e
commit
018c0864e3
@ -94,7 +94,7 @@ public class NiFiWebApiSecurityConfiguration extends WebSecurityConfigurerAdapte
|
||||
http.addFilterBefore(buildRegistrationFilter("/registration"), UsernamePasswordAuthenticationFilter.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// login authentication for /token - exchanges for JWT for subsequent API usage
|
||||
http.addFilterBefore(buildLoginFilter("/token"), UsernamePasswordAuthenticationFilter.class);
|
||||
|
||||
|
@ -134,7 +134,7 @@ public class LoginAuthenticationFilter extends AbstractAuthenticationProcessingF
|
||||
return new LoginAuthenticationToken(preAuthenticatedCredentials);
|
||||
}
|
||||
} else {
|
||||
// if not configuration for login, don't consider credentials
|
||||
// if not configuration for login, don't consider credentials
|
||||
if (loginIdentityProvider == null) {
|
||||
throw new BadCredentialsException("Login not supported.");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user