The structure should look like this

http {
    oauth2ResourceServer {
        jwt {
            authenticationManager = ProviderManager(authenticationProvider)
        }
    }
}