https://github.com/arseniyshestakov/mantisdiscoursesso
Authentification in Mantis Bug tracker using Discourse SSO
https://github.com/arseniyshestakov/mantisdiscoursesso
discourse discourse-sso mantisbt mantisbt-plugin php
Last synced: 3 months ago
JSON representation
Authentification in Mantis Bug tracker using Discourse SSO
- Host: GitHub
- URL: https://github.com/arseniyshestakov/mantisdiscoursesso
- Owner: ArseniyShestakov
- License: gpl-2.0
- Created: 2017-09-01T20:59:27.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-02T07:46:51.000Z (almost 8 years ago)
- Last Synced: 2025-01-22T09:33:11.691Z (5 months ago)
- Topics: discourse, discourse-sso, mantisbt, mantisbt-plugin, php
- Language: PHP
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MantisDiscourseSSO
License: GPLv2 or later
Supported:
* MantisBT 1.2.x
Install dependency:
* Depend on: [Single file SSO client for Discourse](https://github.com/ArseniyShestakov/singlefile-discourse-sso-php)
* To install SSO client copy ```discourse-sso.php``` into your Mantis root directory and edit defines.
* Visit ```https://example.com/discourse-sso.php``` once so script can create database table.
* You might check if it's working properly by checking contents of SSO_DB_TABLE from commandline:
```
mysql -u mantisuser -pPASSWORD mantisdb -e "SELECT * FROM sso_login;"
```How to install plugin:
* Clone repository into plugins directory
```
git clone https://github.com/ArseniyShestakov/MantisDiscourseSSO.git /path/to/mantis/plugins/MantisDiscourseSSO
```
* Open Mantis in browser and login as administrator.
* Go to Manage -> Manage Plugins
* Find Discourse SSO Plugin in the list and install it.
* Now set following settings in your ```config_inc.php```:
```
// Enable login through Discourse
$g_login_method = DISCOURSE_SSO;
// Disable signup on Mantis
$g_allow_signup = OFF;
// Disable password reset by Mantis
$g_send_reset_password = OFF;
// Must be changed since default is login_page.php and that page will redirect to Discourse SSO
$g_logout_redirect_page = 'view_all_bug_page.php';
// Users are created by SSO plugin with empty email
$g_allow_blank_email = ON;
```