| Name | Modified | Size | Downloads / Week |
|---|---|---|---|
| Parent folder | |||
| readme.txt | 2013-11-08 | 2.5 kB | |
| LTI4Mediawiki.zip | 2013-11-08 | 42.1 kB | |
| Totals: 2 Items | 44.6 kB | 0 | |
Proyecto financiado por MINECO y FONDOS FEDER / Project funded by Spanish Ministry of Economy and Competitiveness and European Regional Development Funds
Tested with MediaWiki 1.19.1, 1.20 and 1.21.2
1) Put the folder LTI in to mediawiki/extensions folder
2) Edit LocalSettings.php and add the Authentication Extension at the end
include("extensions/LTI/LTIAuth.php");
include("extensions/LTI/CatLinkAtBottom.php");
include("extensions/LTI/KillLogout.php");
If you want to include special permissions for the others categories/courses, like only categories/courses logged can be read, edited, created pages...
Usage CategoryPermissionsLTI:
$wgCategoryExclusive=array("Category:cat_name","Category:cat2_name");//deny acces to these categories for anyone not in the group
$wgGroupAlwaysAllow=''; //set a group name to ALWAYS allow access to this group
$wgGroupDefaultAllow=false; //set to true to allow everyone access to pages without a category
//get the name of LTIclassroom
$course_name = $_SESSION['LTIclassroom'];
//add groups to category permissions by:
$wgGroupPermissions['user']['*_read'] = false; //Set permission for others categories/courses
$wgGroupPermissions['user']['*_edit'] = false;
$wgGroupPermissions['user']['*_move'] = false;
$wgGroupPermissions['user']['*_created'] = false;
$tag_category = 'Category';//'Course' //Be careful with the translate of Categoryç
//Set permission for current category/course
$wgGroupPermissions['user'][$tag_category.':'.$course_name.'_read'] = true;
$wgGroupPermissions['user'][$tag_category.':'.$course_name.'_edit'] = true;
$wgGroupPermissions['user'][$tag_category.':'.$course_name.'_move'] = true;
$wgGroupPermissions['user'][$tag_category.':'.$course_name.'_create'] = true;
$wgGroupPermissions['user'][$tag_category.':'.$course_name.'_createpage'] = true;
//if yo want you can define special permission access for a group to all categories like this
$wgGroupPermissions['group_name']['*_read']=true;
include_once('extensions/LTI/CategoryPermissionsLTI.php');
3) Configure LTI:
IMSBasicLTI/configuration/authorizedConsumersKey.cfg you can define the user and password, for example to define the consumer key "external" yo have to define
consumer_key.test.enabled=1
consumer_key.test.secret=12345
Configure Tool From Consumer (there are 2 resources keys pre-configurated you can change the configuration in IMSBasicLTI/configuration/authorizedConsumersKey.cfg)
Remote Tool URL: http://url/mediawiki/
Resource Key: test
Password: 12345