Help for a newb mantis plugin writer
Posted: 13 Jun 2020, 09:49
Hi all. I'm looking to write a plugin for mantis to sync it with phpbb. I'm looking to log in through phpbb and when go to mantisbt, mantis detects this and doesn't ask for a login - using phpbb's auth rather than it's own (although I'm guessing there needs to be some catch for 'new' users to mantisbt to create a new account). I've sought some advice from the writer of a phpbb plugin writer, and he advised:
I normally code in .net - although I have done a bit of php coding (and know how to interface with mysql through php). A couple of questions:I took a quick look at the MantisBT documentation, and they have a sample plugin that does authorization. Such a plugin can be modified to read the phpBB cookies and validate the user with a couple simple queries to the phpBB database. That would seem to be the best way to proceed since it eliminates the need to write both a WP plugin and phpBB extension, and there would be no need to deal with passwords/registration in MantisBT.
Since I know nothing about MantisBT, you would be on your own with writing a MantisBT plugin. The phpBB code in the session_begin() and session_create() functions in the phpbb/session.php file contains most of what you will need.
- Does anyone know where this example Authorisation plugin is?
- Any tips for a newb(ish) php/mantis plugin writer on how to achieve the above?