x42 / dokuoauth Goto Github PK
View Code? Open in Web Editor NEWDokuwiki oauth plugin
Home Page: http://mir.dnsalias.com/wiki/dokuoauth
Dokuwiki oauth plugin
Home Page: http://mir.dnsalias.com/wiki/dokuoauth
see http://mir.dnsalias.com/wiki/dokuoauth oAuth-tokens and keys are stored in DOKU_CONF.'oauth.inidb' in .ini db file format. Much or this plugin is work in progress - DON'T USE FOR PRODUCTION. The dokuoauth plugin requires a small patch to dokuwiki intoducing a new Event-Hook: ACTION_ON_AUTH --- a/inc/auth.php +++ b/inc/auth.php @@ -72,7 +72,13 @@ // external trust mechanism in place $auth->trustExternal($_REQUEST['u'],$_REQUEST['p'],$_REQUEST['r']); }else{ - auth_login($_REQUEST['u'],$_REQUEST['p'],$_REQUEST['r']); + $evt = new Doku_Event('ACTION_ON_AUTH',$ACT); + $evt->advise_before(); + if(empty($_SERVER['REMOTE_USER'])) { + auth_login($_REQUEST['u'],$_REQUEST['p'],$_REQUEST['r']); + } + $evt->advise_after(); + unset($evt); } } --- OAuth.php and OAuth_DokuServer.php are based on http://oauth.googlecode.com/svn/code/php/ by Andy Smith under MIT license. - This dokuwiki plugin is distrubuted in terms of the GPL.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.