premek
Hi!
Can I use Dokuwiki as a auth backend for my application?
Like this:
User (with his login & pass) => MyApp => Dokuwiki (as a backend for my app) => Dokuwiki's backend (file)
* MyApp asks user for login/pass
* MyApp asks Dokuwiki if user/pass is OK
* Dokuwiki asks its backend (file, mysql, ...)
* Dokuwiki replies to MyApp
* MyApp remembers user is logged in
OR
* MyApp asks user for login/pass
* MyApp tries to login into Dokuwiki as a user
* Dokuwiki login the user using its backend (file, mysql, ...) or replies that the pass is wrong
* MyApp can ask dokuwiki if "am I logged in?"
My question is if there is some API for this in Dokuwiki or if I have to parse its "users.auth" file in my application. Or if there is some other way to do this.
Thank you very much!
Přemek.