Windows Store app - Authenticate and Authorize users with Server Scripts in Windows Azure Mobile Services

Sign in to queue

The Discussion

  • User profile image
    Dan Bjorge

    It's a shame that you don't go through server-side validation for update/delete operations - since they would need to validate against the *original* version of the item, which is a little bit more complex than insert and read, they probably warrant some explanation of their own.

  • User profile image
    Andre Steenbergen


    good point, I tried something, but I don't know if this is the best solution

    function update(item, user, request) {
    var todoTable = tables.getTable('todoitem');

    userId: user.userId,
    id :
    success: checkPermissions

    function checkPermissions(results) {
    if (results.length == 1) {
    } else {
    console.log('User %s attempted to submit an order without permissions.', user.userId);
    request.respond(statusCodes.FORBIDDEN, 'You do not have permission to update item with ID %d.',;

Add Your 2 Cents