[Cubicweb] Apache authentication: which CubicWeb API?

Sylvain Thénault sylvain.thenault at logilab.fr
Tue Oct 8 17:36:08 CEST 2013


On 08 octobre 17:30, Aurélien Campéas wrote:
> On 08/10/2013 17:17, Dimitri Papadopoulos Orfanos wrote:
> >I've tried the following code, where I try to access the preferences of
> >the account (I chose the "/myprefs/" page of the application as a
> >standard URL that does require authentication). Whether the identifier
> >pair is correct or not, I get the HTTP status code 200 (Success: OK).
> >The HTML page just contains this error message in case of authentication
> >failure: "You have no access to this view or it can not be used to
> >display the current data."
> >
> >Any clue on how to modify this code to detect authentication failures
> >(without parsing the HTML page)?
> >
> >Genrally speaking, I cannot find any clue in the documentation on how to
> >(programatically) query a CubicWeb database using HTTP. Is there basic
> >documentation on how to access the data in CubicWeb databases?
> 
> The new shiny "signed request" cube
> (https://www.cubicweb.org/project/cubicweb-signedrequest) might be
> what you are looking for.

Though unproper HTTP status code in the described case is definitly a bug
that should be fixed.
-- 
Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org



More information about the Cubicweb mailing list