On 06/04/2013 07:42 AM, oren bochman wrote: > This schedule is excellent news. > > I am working on integrating Moodle with mediawiki and having a Sul support > would be great. > > we are looking at two basic use cases. > 1. Allowing existing user to log into Moodle via openid. > 2. Making edits such as clearing the sandbox on behalf of students. > > Unfortunately Oauth is currently broken on the current version of Moodle and > will require some work. However I'm working on coordinating with our local > Moodle dev community to help us out. > > I am wondering if Oauth will allow a user's privileges to be queried. Or if > this can be done using the API?
It can be done with the API (https://www.mediawiki.org/wiki/API:Users). However, OAuth also has a concept of scopes. So you can request a 'protect' scope, for example. You should only get it if they both have the protect right *and* choose to grant it via OAuth to your Moodle site. See https://www.mediawiki.org/wiki/OAuth#Suggested_Granularity_of_Permissions (list is not final). Matt Flaschen _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l