Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Getting at Gdn::Session from external application
Hello!
I'm trying my hand at doing (okay, I know. hacking.) an external SSO integration between Vanilla and Dokuwiki (such that forum users can use Dokuwiki without needing a separate login there). There're a number of attempts out there, but they're all antiquated and don't work with modern Vanilla.
I'm wondering if anyone has any ideas about how one might include enough of Vanilla from an external PHP application to get at Gdn::Session? Including bootstrap.php is decidedly insufficient 😁
Cheers!
Michael
0
Comments
See this if it helps
https://open.vanillaforums.com/discussion/comment/255046/#Comment_255046
Thanks! That did it!
Although it looks like I need to mess with the cookie domain to be able to have the session span subdomains; I can't quite be bothered mucking with it as I configured Dokuwiki's PDO auth plugin to use Vanilla's user database and it's working fine. Good enough!