by Jonathan Baird.
Hi,
I am encountering the same error you did and I do think I have created all of the pieces...
I created a role that has been given the necessary 'capabilities' (including "Use REST protocol"). A user has been given this role.
I created a service that has been given all of the same 'functions' as the role. Of course, I have also enabled REST protocol on the server settings.
I also created a token that links the service and the user.
I must be missing something though since I am still getting a connection failure when trying to connect to the service. Any insights would be greatly appreciated.