azure-mobile-services

Web API converted to Azure Mobile Service not serializing all properties

拥有回忆 提交于 2019-12-07 12:48:27
问题 I have a working Web API that i am converting to a .Net Azure Mobile Service. The API returns a complex model - objects with properties - some of which are collections of other objects. This works as expected with plain Web API but with Azure Mobile Services I have an issue where one of my models does not have all it's properties serialized. When i set a break point on the return statement in the controller, I see that all the properties and their values are present. This leads me to believe

Azure mobile apps CRUD operations on SQL table (node.js backend)

会有一股神秘感。 提交于 2019-12-07 12:43:05
问题 This is my first post here so please don't get mad if my formatting is a bit off ;-) I'm trying to develop a backend solution using Azure mobile apps and node.js for server side scripts. It is a steep curve as I am new to javaScript and node.js coming from the embedded world. What I have made is a custom API that can add users to a MSSQL table, which is working fine using the tables object. However, I also need to be able to delete users from the same table. My code for adding a user is: var

How do we load related objects (Eager Loading) in Dot Net based Azure Mobile Service?

跟風遠走 提交于 2019-12-07 10:28:26
问题 If I have following model structure public class QuestionItem: EntityData { public string Content { get; set; } public bool IsAnswered { get; set; } public int NumberOfAnswers { //todo: make it computable get; set; } public UserItem By { get; set; } public string ById { get; set; } public string AtLocation { get; set; } } & parent entity as public class UserItem:EntityData { public string UserName { get; set; } public string Gender { get; set; } public string BaseLocation { get; set; } public

Locally Testing Azure Mobile Auth - invalid jwt signature

不羁的心 提交于 2019-12-07 07:36:25
I am playing with an Azure Mobile Apps backend (nodeJS), as discussed here . I have been using the default web setup configuration to develop my mobile app, but now I want to customise the cloud backend functionality, so I have created a local backend with the Azure-Mobile-Apps SDK . I logged in with my mobile app (using the authorization aspect of the Azure client SDK) and then captured the AuthToken. I then constructed a Postman HTTP POST request, with these headers: ZUMO-API-VERSION = 2.0.0 x-zumo-auth = eyJ0eX000000000000000000000000000000

How to implement custom authentication in an Azure Mobile App

无人久伴 提交于 2019-12-07 07:28:59
问题 In the latest update of Azure Mobile Apps, support for custom authentication was finally added, ref: https://azure.microsoft.com/en-us/blog/azure-mobile-apps-november-2015-update. They have included a snippet for issuing a JWT-token, but my question is how would I use this in my app for authenticating requests? I guess I need to add a custom token handler in my WebApiConfig, but I can't find any docs on the subject. 回答1: Turn on App Service Authentication Add Microsoft.Azure.Mobile.Server

Azure Mobile Services Custom API Getting Bad Request on Client

我们两清 提交于 2019-12-07 05:02:28
问题 So I'm using azure mobile services backend to try and make a custom API. However I can't seem to connect to even the template table from the client. When you make a new Azure Mobile Service using the template they provide you with this values API controller that resembles this format [MobileAppController] public class ValuesController : ApiController { // GET api/values [Route("api/values")] public string Get() { return "test"; } } From the client I'm trying to invoke this endpoint like this

Receive WNS push notfication on Windows phone silverlight 8.1

为君一笑 提交于 2019-12-07 04:37:55
问题 I have windows phone 8.1 silverlight application where I want to receive Notfications using the new framework, WNS. I have in the package.appxmanifest: <identity name="4657xxxxxxx" publisher="CN=xxxxx" version="1.0.0.0"/> and added it to the Mobile Service Hub. For this I have removed old references to MPNS usings, and added the following for WNS: using Windows.UI.Notifications; using Windows.Networking.PushNotifications; using Windows.UI.StartScreen; This resulted in a new way of getting the

Uploading to azure blob storage from SAS URL returns 404 status

非 Y 不嫁゛ 提交于 2019-12-07 03:56:26
I am using Azure Mobile Services API endpoint to return a private shared access signature URL to my azure storage container like so: var blobService = azure.createBlobService(accountName, key, host); blobService.createContainerIfNotExists(containerName, function(err) { if (err) { cb(err, null); return; } // Generate a 5 minute access var expiryDate = minutesFromNow(5); var sharedAccessPolicy = { AccessPolicy: { Permissions: azure.Constants.BlobConstants.SharedAccessPermissions.WRITE, Expiry: expiryDate } }; // Generate the URL with read access token var sasURL = blobService

The request could not be completed. (Internal Server Error) at Microsoft.WindowsAzure.MobileServices.MobileServiceHttpClient

孤人 提交于 2019-12-07 00:10:40
I have a Xamarin.Forms app which is connected to an Azure Mobile Service backend. I am in the process of upgrading my (migrated) mobile service to an app service according to this documentation . I have added my easy tables to my new app service and I can see the data records in the Azure portal. But when I make any call to this new app service via my app it results in the following error: Microsoft.WindowsAzure.MobileServices.MobileServiceInvalidOperationException: The request could not be completed. (Internal Server Error) at Microsoft.WindowsAzure.MobileServices.MobileServiceHttpClient Does

Azure Mobile Service Paging Limitation

Deadly 提交于 2019-12-06 15:03:19
I have a query function that talks to a local Azure mobile service (localhost). I am aware that the default query limitation is 50, and the official document says the Take extension function could be used to extend the limitation up to 1000. But for some reason it does not work for me, no matter how many the Take parameter is, I always got 50 objects back. Am I doing anything wrong? private async void UpdatePlaceNameList(String type) { var table = App.MobileService.GetTable<Place>(); var query = table .Where(p => p.Type == type) .Take(600) .IncludeTotalCount(); ViewModel["PlaceList"] = await