@@ -17,8 +17,7 @@ import java.util.Map;
|
||||
import org.eclipse.hawkbit.tenancy.UserAuthoritiesResolver;
|
||||
|
||||
/**
|
||||
* An implementation of the {@link UserAuthoritiesResolver} that is based on
|
||||
* in-memory user permissions.
|
||||
* An implementation of the {@link UserAuthoritiesResolver} that is based on in-memory user permissions.
|
||||
*/
|
||||
public class InMemoryUserAuthoritiesResolver implements UserAuthoritiesResolver {
|
||||
|
||||
|
||||
@@ -77,7 +77,7 @@ public class MdcHandler {
|
||||
|
||||
final String tenant;
|
||||
if (authentication.getDetails() instanceof TenantAwareAuthenticationDetails tenantAwareAuthenticationDetails) {
|
||||
tenant = tenantAwareAuthenticationDetails.getTenant();
|
||||
tenant = tenantAwareAuthenticationDetails.tenant();
|
||||
} else {
|
||||
tenant = null;
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ public class SpringSecurityAuditorAware implements AuditorAware<String> {
|
||||
}
|
||||
|
||||
protected String getCurrentAuditor(final Authentication authentication) {
|
||||
if (authentication.getDetails() instanceof TenantAwareAuthenticationDetails tenantAwareDetails && tenantAwareDetails.isController()) {
|
||||
if (authentication.getDetails() instanceof TenantAwareAuthenticationDetails tenantAwareDetails && tenantAwareDetails.controller()) {
|
||||
return "CONTROLLER_PLUG_AND_PLAY";
|
||||
}
|
||||
if (authentication.getPrincipal() instanceof UserDetails userDetails) {
|
||||
|
||||
Reference in New Issue
Block a user