[Cubicweb] Apache authentication: which CubicWeb API?

Aurélien Campéas aurelien.campeas at logilab.fr
Tue Oct 8 17:30:28 CEST 2013


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.


Regards,
Aurélien.



More information about the Cubicweb mailing list