Merge pull request #4 from CatalystIT-AU/issue#2

Fix #2 remove default archetypes and update documentation
This commit is contained in:
Dmitrii Metelkin 2016-08-27 15:01:29 +10:00 committed by GitHub
commit 46f7068b38
2 changed files with 3 additions and 3 deletions

View file

@ -14,8 +14,9 @@ Using
3. Enable web service advance feature (Admin > Advanced features), more info http://docs.moodle.org/en/Web_services 3. Enable web service advance feature (Admin > Advanced features), more info http://docs.moodle.org/en/Web_services
4. Enable one of the supported protocols (Admin > Plugins > Web services > Manage protocols) 4. Enable one of the supported protocols (Admin > Plugins > Web services > Manage protocols)
5. Create a token for a specific user and for the service 'User key authentication web service' (Admin > Plugins > Web services > Manage tokens) 5. Create a token for a specific user and for the service 'User key authentication web service' (Admin > Plugins > Web services > Manage tokens)
6. Configure your external application to make a web call to get login URL. 6. Make sure that the "web service" user has 'auth/userkey:generatekey' capability.
7. Redirect your users to this URL to be logged in to Moodle. 7. Configure your external application to make a web call to get login URL.
8. Redirect your users to this URL to be logged in to Moodle.
Configuration Configuration
------------- -------------

View file

@ -31,7 +31,6 @@ $capabilities = array(
'captype' => 'write', 'captype' => 'write',
'contextlevel' => CONTEXT_SYSTEM, 'contextlevel' => CONTEXT_SYSTEM,
'archetypes' => array( 'archetypes' => array(
'manager' => CAP_ALLOW
), ),
), ),
); );