How to ignore (not to secure) few paths


We are using keycloak in our springboot application. We are trying to upgrade from 4.4 to 13. Every thing works fine except few apis that we dont want to secure. We have defined as below

    public void configure(WebSecurity web) {
        String[] paths = getPaths().toArray(new String[0]);

We are passing list in paths. And passing that list in web ignore paths.
And I dont think spring security has changed around WebSecurity.
Is there anything has changed in keycloak adapter ?
Please help with this