Hello!
I've been trying to get the token authentication working for some time now, but it seems I've hit a hurdle that just won't budge.
I have set up the web service as instructed in the overview under "Users as clients with token", and I intend to get the token from token.php as the user tries to access the client. When creating a token in managing tokens and using it with the web service test client everything works fine, but as soon as I call token.php I get an error:
"Web service is not available (it doesn't exist or might be disabled)"
And tells me it's occuring at line 76 in token.php, at which the comment states that it "will throw exception if no token found". I thought this could be because each user had to create their token before it could be used, but looking at the security keys page of the user account I'm using it does have a token for the web service.
I've also been wondering if this could be because of an error in the database, which I have edited to add the shortname for the service. But the documentation seems a bit ambigous at times. In the description for the external_services table (http://docs.moodle.org/dev/External_services_description) I find no reference to the shortname I'm supposed to be adding, which is needed to use token.php if I'm not mistaken. I have added a record anyway just to see if it would work but to no avail.
What could I be doing wrong here?
Regards,
Alexander Wiklund