Remove the ROLE_CONTROLLER_ANONYMOUS (#2948)
Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
@@ -172,7 +172,7 @@ public class AmqpMessageHandlerService extends BaseAmqpService {
|
||||
private static void setTenantSecurityContext(final String tenant) {
|
||||
final AnonymousAuthenticationToken authenticationToken = new AnonymousAuthenticationToken(
|
||||
UUID.randomUUID().toString(), "AMQP-Controller",
|
||||
List.of(new SimpleGrantedAuthority(SpRole.CONTROLLER_ROLE_ANONYMOUS)));
|
||||
List.of(new SimpleGrantedAuthority(SpRole.CONTROLLER_ROLE)));
|
||||
authenticationToken.setDetails(new TenantAwareAuthenticationDetails(tenant, true));
|
||||
setSecurityContext(authenticationToken);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user