non admin user getting no permission to create a web service token error
Re: non admin user getting no permission to create a web service token error
You must be using the older addon for Oauth2 given you site is 3.2 ... in 3.3 now part of core.
Question ... are you allowing users to connect using the mobile app?
In order to do so, users would need to be able to create a token.
Pick a user:
https://site/admin/roles/check.php?contextid=1
and see permissions.
Have a 3.2 site running the older plugin but is allowing mobile and users can authenticate with browser via Google.
'spirit of sharing', Ken
Re: non admin user getting no permission to create a web service token error
As I see it there are two types of tokens:
moodle/webservice:createmobiletoken
is allowed for authenticated users, however
moodle/webservice:createtoken
is not allowed. It looks like that has more security risks. But should I turn it on for authenticated users?
Re: non admin user getting no permission to create a web service token error
Hi Colin,
yes, allowing moodle/webservice:createtoken for authenticated users should be fine and is the same as dangerous than moodle/webservice:createmobiletoken