Jump to:

23480 Posts in 18951 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Authorisation for RESTful Webserivce

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 429 Views
  • Silverfish
    Community Member
    59 Posts

    Authorisation for RESTful Webserivce Link to this post

    Hi Everybody,

    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

    Kind Regards

Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.