View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0008277 | mantisbt | integration | public | 2007-08-19 02:39 | 2020-06-27 01:48 |
Reporter | firebus | Assigned To | dregad | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | firefox 2.x | OS | windows | OS Version | xp |
Product Version | 1.1.0a4 | ||||
Summary | 0008277: dokuwiki integration: cannot login from wiki login page | ||||
Description | so, let's redirect the dokuwiki login page to the mantis login page by adding a rewrite rule to dokuwiki's .htaccess use mantis' return parameter to bounce back to the correct page on the wiki after login. assuming that mantis is installed at /mantis, and dokuwiki at /dokuwiki: ewriteCond %{QUERY_STRING} do=login likewise, we can remap the dokuwiki logout page (since that doesn't seem to work either) RewriteCond %{QUERY_STRING} do=logout | ||||
Additional Information | let me know if this idea is acceptable, and i'll update the wiki page for 0007075 | ||||
Tags | No tags attached. | ||||
I disagree here.
which means this function should be able to do a login by calling Mantis' auth_attempt_login(). I went deep into it today but only reached partial solution: Find the modified code in the wiki of this issue (because still being worked on) |
|
I'm not allowed to create an wiki entry for this issue :-( So here's a first attempt to optimise it (new lines marked with a +) function auth_mantis(){
|
|
oh sorry, I'm talking about: mantis.class.php Maybe someone else finds the clue, why a reload is nessecary to make the login page disappear after login in. |
|
This is working for me: RewriteCond %{QUERY_STRING} do=login RewriteCond %{QUERY_STRING} do=logout After hitting login, I can login via the mantis-login and after that I am logged in in my wiki. No reload needed. Logout also works. No wiki-login-page appears. |
|
i agree with pluntke that this should be handled in the integration. the htaccess solution is just a kludge (but a nice one!) |
|
I also agree. I run Mantis on a Windows server and rewrites like the above don't work without some drama. |
|
I can't reproduce the problem in mantis 1.1.0. Can anyone else please check if this issue is solved? |
|
... with or without my small addition? |
|
Making these changes: function auth_mantis(){ /**
seems to get login/logout working as expected. trustExternal has more changes in than needed - I like a single point of exit :-) Basic change is to login if a user name is provided and set REMOTE_USER if that succeeds. |
|
Using Apache mod_rewrite is no longer necessary. |
|