r3219 - Added support for HTTP basic auth- How to enable?
Added by Stei Pauk almost 15 years ago
Hi,
I tried to enable basic auth HTTP and it does not work. I checked REST, use 0.9.3.
Processing ProjectsController#show (for x.x.x.x at 2010-03-06 14:23:15) [GET]
Parameters: {"action"=>"show", "id"=>"t", "controller"=>"projects"}
Redirected to https://www.x.pl/r/login?back_url=https%3A%2F%2Fwww.x.pl%2Fr%2Fprojects%2Ft
Filter chain halted as [:check_if_login_required] rendered_or_redirected.
Completed in 12ms (DB: 3) | 302 Found [https://www.x.pl/r/projects/t/]
Processing AccountController#login (for x.x.x.x at 2010-03-06 14:23:15) [GET]
Parameters: {"back_url"=>"https://www.x.pl/r/projects/t", "action"=>"login", "controller"=>"account"}
Rendering template within layouts/base
Rendering account/login
Completed in 60ms (View: 41, DB: 11) | 200 OK [https://www.x.pl/r/login?back_url=https%3A%2F%2Fwww.x.pl%2Fr%2Fprojects%2
I always hit he login page. Have someone use it?
Replies (1)
RE: r3219 - Added support for HTTP basic auth- How to enable? - Added by Felix Schäfer almost 15 years ago
I'm not sure how much of the REST interface is active at the time being (afaik issues are not RESTified in stable for now), and you will not be able to use your login+pw for http basic authentication, but you will need to use the API key available in the sidebar of your "My account" page (the key as pw should be enough, iirc the login is not required). You will also need to GET the xml views, not the html views, as html is not available to http basic auth (i.e. get https://www.x.pl/r/projects/t.xml
).