When I write "put rest / default / key" in the server console command JDG , It shows me the message , "forbidden" , I think I need to set either the user, but that is not what is wrong.
Out-of-the-box the rest connector is secured:
<rest-connector socket-binding="rest" cache-container="local" security-domain="other" auth-method="BASIC"/>
change it to
<rest-connector socket-binding="rest" cache-container="local" />