21277 Posts in 5728 Topics by 2599 members
|Go to End|
11 October 2012 at 1:21am Last edited: 11 October 2012 2:00am
on Silverstripe 2.4.x, I'm trying to realize restful Webservice Access on one of the DataObjects of our Web-Project.
First part was pretty easy, just added
static $api_access = array(
'view' => array(
'edit' => array(
to the DataObject Code. But of course I want to limit access (at least for PUT requests) to authorized users. The Service shall be accessed via an external Script, so I'm thinking of using Basic Auth, with Username & Password transfered within the header of the request.
How do I get Silverstripe to read / accept this kind of authentication?
Thanks a lot for a bit of insight
|Go to Top|