Menu

#504 HTTP "WWW-Authenticate: Basic" log out fixation

closed-out-of-date
nobody
5
2015-07-25
2010-03-25
No

The patch is change mechanism of HTTP "WWW-Authenticate: Basic" log out fixation which is describe into Limitation FAQ 3.1
Modified Files: ./libraries/auth/http.auth.lib.php

The mechanism implement with session and redirection to set session variable

Discussion

  • shahadat hossain khan

    ./libraries/auth/http.auth.lib.php.diff

     
  • shahadat hossain khan

    • milestone: --> Finished,_needs_serious_tests
    • priority: 5 --> 9
     
  • Marc Delisle

    Marc Delisle - 2010-03-25
    • priority: 9 --> 5
     
  • Marc Delisle

    Marc Delisle - 2010-03-26
    • assigned_to: nobody --> lem9
     
  • Marc Delisle

    Marc Delisle - 2010-03-26

    The patch contains even non-changed lines, it's difficult to see what has changed.
    However, I'm not sure we want to include such complex code just to fix this kind of problem.

     
  • Marc Delisle

    Marc Delisle - 2010-03-26
    • assigned_to: lem9 --> nobody
     
  • shahadat hossain khan

    so, what need to do. please suggest... i know its complex but i feel, the change need badly

    anyways, pls suggest what to do

     
  • shahadat hossain khan

    the code that i modified to fix the error

     
  • Marc Delisle

    Marc Delisle - 2010-03-27

    You might not know this but in general we want to avoid redirections. There are a few in the code but we tend to remove them. Also, this limit has been there for many years and I don't feel that the change is "needed badly". Finally, I don't have the time right now to understand the complex code; adding complex code to a code base is not a good idea. anyway

    This patch can stay there in the tracker for some future time. Meanwhile please submit another, more simple patch about another subject, but first ask us if the feature or fix are needed.

    Also, a patch should contain only the changed lines, not all the lines like what you submitted!

     
  • shahadat hossain khan

    well... if you have support for test the code pls arrange.

     
  • shahadat hossain khan

    one more request can you pls assign a small problem that need to fix....

     
  • Michal Čihař

    Michal Čihař - 2010-03-29

    Do I read it correctly that the main functionality is to change realm on logout? I think such functionality can be implemented in much fewer lines.

     
  • Michal Čihař

    Michal Čihař - 2010-03-29
    • assigned_to: nobody --> nijel
     
  • shahadat hossain khan

    yes you got it... change realm on logout...

    there has another challenge that when user click on cancel button without provide user id and password.

    if you analysis the flow of "WWW-Authenticate: Basic" then you find it just complete run before any output to client. so session set before take action of "WWW-Authenticate: Basic"... so, you can't get when user click cancel button...

    for getting user's interaction the code needed for redirection

     
  • Michal Čihař

    Michal Čihař - 2010-03-30

    Can you please provide patch which does just minimal required changes, possibly separated into two steps - changing realm on logout and the redirection magic. The currently attached patch is too complex to review and IMHO does too much things.

     
  • Michal Čihař

    Michal Čihař - 2010-08-23

    Any progress on this?

     
  • Michal Čihař

    Michal Čihař - 2011-02-08
    • status: open --> pending-out-of-date
     
  • shahadat hossain khan

    clean code with example

     
  • shahadat hossain khan

    • status: pending-out-of-date --> open-out-of-date
     
  • shahadat hossain khan

    i just make a clean file of authentication and a separate file for example..

     
  • Michal Čihař

    Michal Čihař - 2011-03-04
    • assigned_to: nijel --> nobody
     
  • Marc Delisle

    Marc Delisle - 2012-01-11
    • status: open-out-of-date --> open
     
  • Marc Delisle

    Marc Delisle - 2015-07-25
    • status: open --> closed-out-of-date