Execute
./cli user create admin -p admin
Change infinispan.xml to
<endpoints> <endpoint socket-binding="default" security-realm="default"> <hotrod-connector name="hotrod" /> <rest-connector name="rest"> <authentication mechanisms="BASIC" /> </rest-connector> <memcached-connector socket-binding="memcached" /> </endpoint> </endpoints>
Start the server and execute curl http://admin:admin@127.0.0.1:11222/rest/v2/caches/ -v