Connect Cocalc by OAuth with MediaWiki (MediaWiki4IntraNet)

From Wiki4Intranet
Jump to: navigation, search
(Created page with " ;The Idea: [http://cocalc.com CoCalc] ([https://github.com/belonesox/cocalc my fork]) is great service for scientific realtime collaboration (jupyter notebooks, latex editing...")
 
Line 1: Line 1:
  
 
;The Idea:
 
;The Idea:
[http://cocalc.com CoCalc] ([https://github.com/belonesox/cocalc my fork]) is great service for scientific realtime collaboration (jupyter notebooks, latex editing, PDF articles sharing). But it is not suitable for creating Team Portal/Dashboard, and Team Knowledge Base. Lot of loosly connected projects, impossibility of consistenly linked/renamed pages, …  
+
[http://cocalc.com CoCalc] ([https://github.com/belonesox/cocalc my fork]) is great service for scientific realtime collaboration (jupyter notebooks, latex editing, PDF articles sharing). But it is not suitable for creating Team Portal/Dashboard, and Team Knowledge Base. Lot of loosely connected projects, impossibility of consistenly linked/renamed pages, …  
So better to have MediaWiki (MediaWiki4IntraNet) + CoCalc with authorization on the MediaWiki. For example,
+
So better to have MediaWiki (MediaWiki4IntraNet) + CoCalc with authorization on the MediaWiki.  
 +
Additionaly to Content Features, this binging get interesting possibilities to Team Authorization.
 +
For example, «extensions/LdapAuthentication» allows MediaWiki authenticate by LDAP, but is is not possible without radical patching, add LDAP Auth to Cocalc.
 +
 
 +
So, how to do it.
 +
 
 +
For MediaWiki4IntraNet, install REL1_26 branch of our fork https://github.com/mediawiki4intranet/mediawiki-extensions-OAuth
 +
(branch REL1_26 unusable and need patch).
 +
 
 +
Add this to LocalSettings:
 +
<source lang="php">
 +
$wgGroupPermissions['user']['mwoauthproposeconsumer'] = true;
 +
$wgGroupPermissions['user']['mwoauthupdateownconsumer'] = true;
 +
$wgGroupPermissions['user']['mwoauthmanageconsumer'] = true;
 +
$wgGroupPermissions['user']['mwoauthsuppress'] = true;
 +
$wgGroupPermissions['user']['mwoauthviewsuppressed'] = true;
 +
$wgGroupPermissions['user']['mwoauthviewprivate'] = true;
 +
$wgGroupPermissions['user']['mwoauthmanagemygrants'] = true;
 +
</source>
 +
 
 +
----

Revision as of 17:23, 29 March 2022

The Idea

CoCalc (my fork) is great service for scientific realtime collaboration (jupyter notebooks, latex editing, PDF articles sharing). But it is not suitable for creating Team Portal/Dashboard, and Team Knowledge Base. Lot of loosely connected projects, impossibility of consistenly linked/renamed pages, … So better to have MediaWiki (MediaWiki4IntraNet) + CoCalc with authorization on the MediaWiki. Additionaly to Content Features, this binging get interesting possibilities to Team Authorization. For example, «extensions/LdapAuthentication» allows MediaWiki authenticate by LDAP, but is is not possible without radical patching, add LDAP Auth to Cocalc.

So, how to do it.

For MediaWiki4IntraNet, install REL1_26 branch of our fork https://github.com/mediawiki4intranet/mediawiki-extensions-OAuth (branch REL1_26 unusable and need patch).

Add this to LocalSettings:

$wgGroupPermissions['user']['mwoauthproposeconsumer'] = true;
$wgGroupPermissions['user']['mwoauthupdateownconsumer'] = true;
$wgGroupPermissions['user']['mwoauthmanageconsumer'] = true;
$wgGroupPermissions['user']['mwoauthsuppress'] = true;
$wgGroupPermissions['user']['mwoauthviewsuppressed'] = true;
$wgGroupPermissions['user']['mwoauthviewprivate'] = true;
$wgGroupPermissions['user']['mwoauthmanagemygrants'] = true;