- Add OpenIDConnect support to login to MantisBT.
- User must have an existing MantisBT account where the username matches the username in the OpenID system!
- Signup / account creation scenario is not supported.
- Copy MantisOIDC folder into plugins folder.
- run
composer install
in plugins/MantisOIDC/pages/lib/OpenID-Connect-PHP to install dependencies - Open Mantis with browser.
- Log in as administrator.
- Go to Manage -> Manage Plugins.
- Find Mantis OpenID-Connect in the list.
- Click Install.
- Go Manage -> Manage Plugins -> Mantis OpenID-Connect and click the name to open the plugin's config page
- Copy the highlighted redirect URL
- Go to you OpenID authentication system and create a new client. Past the copied redirect URL
- Enter the URL for your OpenID system with the endpoint for SSO
- Copy client id and secret key to MantisOIDC setting page.
- Enter a name for the Login Button
- Click the save button.
- Tested in MantisBT 2.25.2. Let me know if you are using other OpenID systems and your experiences with this plugin!
- So far only tested with keycloak
- When disabling the credentials input, curious users might still be able to login with username/password by sending a http POST request
- Users are still able to directly open the lost password page
lost_pwd_page.php
and set their password within MantisBT. This will NOT affect the password in the OpenID system! - If there is trouble with authentication and you are locked out of the system without being able to enter credentials, go to the MantisBT database, find the table [mantis]_config_table, search for the value
plugin_MantisOIDC_hide_credentials_login
and set its value tofalse
. This should reenable the login via credentials. - Translations available for English and German. More languages can be added under
plugins/MantisOIDC/lang
. Feel free to send a merge request with new languages added!
- MantisBT 1.2.x - supported
- MantisBT 1.3.x - not supported
- MantisBT 2.6 and higher - supported