mirror of https://github.com/apache/nifi.git
parent
06a4736a58
commit
d41b83c19b
|
@ -57,7 +57,7 @@ public class NiFiAnonymousUserFilter extends AnonymousAuthenticationFilter {
|
||||||
if (!request.isSecure()) {
|
if (!request.isSecure()) {
|
||||||
user.getAuthorities().addAll(EnumSet.allOf(Authority.class));
|
user.getAuthorities().addAll(EnumSet.allOf(Authority.class));
|
||||||
}
|
}
|
||||||
|
|
||||||
// only create an authentication token if the anonymous user has some authorities
|
// only create an authentication token if the anonymous user has some authorities
|
||||||
if (!user.getAuthorities().isEmpty()) {
|
if (!user.getAuthorities().isEmpty()) {
|
||||||
NiFiUserDetails userDetails = new NiFiUserDetails(user);
|
NiFiUserDetails userDetails = new NiFiUserDetails(user);
|
||||||
|
|
Loading…
Reference in New Issue