Feature #13023

Http 401 authenticate pop up with ajax request

Added by fabien esteveny over 9 years ago. Updated over 9 years ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Accounts / authentication
Target version:-
Resolution:

Description

Hi.

With some Ajax request, application controller say 401 unauthorized and a pop up is display to login.
But login and password don't work on this pop up.

I think, I have 401 because session was closed.
It's easy to reproduce even on this website, but my version of Redmine it's 1.4.4.
Logon, click on new issue.
Right click on logout and select open on new window.
Come back to the first window and try to change tracker.
A pop up is display because browser receive 401 error.

To correct this problem I have to check "Enable REST web service" and add "New" in issues_controller.rb at the end of the line :
accept_api_auth :index, :show, :create, :update, :destroy
With this solution, I can change the tracker even if the session is not active anymore. But when I click on "Create" I am redirected to login page and all information entered in the page "New issue" are lost.

Is there a solution to fix this problem, because I am at the limit of my knowledge.

Thanks
Fabien

Also available in: Atom PDF