catalyst / moodle-auth_userkey

Log in to Moodle using one time user key based login URL. Auth plugin for organising simple SSO (single sign on) between moodle and your external web application.
https://moodle.org/plugins/auth_userkey
83 stars 53 forks source link

Access control exception #36

Closed bradvin closed 5 years ago

bradvin commented 5 years ago

Hi - thanks for providing this plugin. I am new to Moodle and I think I am struggling to get all the setup steps complete in order to get the plugin working.

When I access the endpoint through postman, I get the following returned:

{ "exception": "webservice_access_exception", "errorcode": "accessexception", "message": "Access control exception", "debuginfo": "You are not allowed to use the {$a} protocol (missing capability: webservice/rest:use)" }

It looks like a config/permissions issue on my end, but I cannot figure it out. What I am missing?

Any help greatly appreciated

dmitriim commented 5 years ago

Hi @bradvin Make sure that you have configured your site to use webservices. See https://docs.moodle.org/36/en/Using_web_services