Spring MVC + KC adapter + SCOPE

Hi,

I’ve configured Spring MVC + KC adapter

It’s working ok if using roles but not if using scopes…

there’s a scope called ‘read’ which exists (when authorizing with swagger 3) for the required scope return a bearer but fails in

@PreAuthorize("hasAuthority('SCOPE_profile')")
    @RequestMapping(value="/secured/scope_read", produces = "application/json", method = RequestMethod.GET) 
    public EndpointInfo test(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        return new EndpointInfo(true);
    }

this is authorized and working using a role called ‘role_read’

@PreAuthorize("hasAuthority('role_read')")
    @RequestMapping(value="/secured/role_read", produces = "application/json", method = RequestMethod.GET) 
    public EndpointInfo role_read(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        return new EndpointInfo(true);
    }

Any help would be aprecited

using 16.1.0 of both KC and KC adapter in tomcat 9

Thanks