azure-mobile-services

Azure Mobile App MSA Authentication Difficulties

守給你的承諾、 提交于 2019-12-02 08:22:51
So I'm working on a project to redeploy an application that was previously hosted as an Azure Mobile Service as an Azure Mobile App. Said application has a frontend (hosted as a Web App in Azure) and backend API (this is the Mobile App) that is called directly from the frontend's javascript. The upgrade had been going well up until I started working on the Microsoft Account Authentication piece. Following the instructions at... https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-net-upgrading-from-mobile-services https://docs.microsoft.com/en-us/azure/app-service

Setting up Signal R in Android: Crash/Hung Issue

瘦欲@ 提交于 2019-12-02 08:21:01
问题 I followed THIS tutorial to set up a .NET Backend for my Android app to implement Signal R. I set up a SignalR Self-Hosted backend. Here's my Backend Code in a Console Project: namespace SignalRSelfHost { class Program { static void Main(string[] args) { // This will *ONLY* bind to localhost, if you want to bind to all addresses // use http://*:8080 to bind to all addresses. // See http://msdn.microsoft.com/en-us/library/system.net.httplistener.aspx // for more information. string url = "http

Using Azure traffic manager with Mobile App

假如想象 提交于 2019-12-02 05:27:44
Can Azure Traffic Manager be used with Mobile Apps specially with social login? I have configured a traffic manager and two app services (say, mobileapp1 and mobileapp2) to work with it.They seem to work pretty nice with postman and the response and everything is working. Now, I have declared traffic manager's URL as client in xamarin client app and the app throws exception when I am logging in into azure. After logging in facebook, when I am passing the token to server using this line var user = await client.LoginAsync(MobileServiceAuthenticationProvider.Facebook, token); it throws an

Setting up Signal R in Android: Crash/Hung Issue

杀马特。学长 韩版系。学妹 提交于 2019-12-02 05:15:27
I followed THIS tutorial to set up a .NET Backend for my Android app to implement Signal R. I set up a SignalR Self-Hosted backend. Here's my Backend Code in a Console Project: namespace SignalRSelfHost { class Program { static void Main(string[] args) { // This will *ONLY* bind to localhost, if you want to bind to all addresses // use http://*:8080 to bind to all addresses. // See http://msdn.microsoft.com/en-us/library/system.net.httplistener.aspx // for more information. string url = "http://localhost:8080"; using (WebApp.Start(url)) { Console.WriteLine("Server running on {0}", url);

JavaScript Object property always returns undefined [duplicate]

前提是你 提交于 2019-12-02 04:44:44
This question already has an answer here: How can I access and process nested objects, arrays or JSON? 22 answers Tell me what I am missing here. I have the follow javascript object. [ { id: '16B0C2FC-A008-4E8A-849B-DB1251C8CABD', handle: '123', userId: 'ABC123'} ] When I do the following success: function (registration) { console.log(registration); console.log(registration.handle); Console log writes out the object as defined above. However when I do registration.handle I get an error saying "undefined." If registration is the above object why does registration.handle not work? what am I

How to get user name, email, etc. from MobileServiceUser?

旧城冷巷雨未停 提交于 2019-12-02 03:34:43
After a lot of digging around I've got my WPF application signing users in via Azure Mobile Service. My Mobile Service is connected to an Azure Active Directory that I have set up. However, when I log the user in with MobileServiceClient.LoginAsync(...) the MobileServiceUser UserId is in an unreadable hash it seems. For example it looks like: "Aad:X3pvh6mmo2AgTyHdCA3Hwn6uBy91rXXXXXXXXXX". What exactly is this? I'd like to grab the user's display name to use but I can't figure out how. That is the userID of Azure Active Directory. You need to create a service to expose your AAD info through a

Java - How to Retrieve and use a single value from azure mobile services in Android

情到浓时终转凉″ 提交于 2019-12-02 02:22:31
问题 I am new to azure but i know certain things like how to retrieve and store data to azure , i followed azure official documentation for this purpose. Link is Here - https://azure.microsoft.com/en-in/documentation/articles/mobile-services-android-get-started-data/ But the problem is, this tutorial is only showing How to retrieve and use Data from azure using Adapters and Lists . I want to know , How can i retrieve a single value from azure mobile services and how to use it in android . Plzz

How to use latest npm on Azure Mobile Service deployment

纵然是瞬间 提交于 2019-12-02 01:49:00
问题 The Azure Mobile Service image that I am using currently is locked down to npm version 1.2.30. There are latest npm version installed on the image(under ...\Program Files(x86)\npm). But npm is locked down to the version 1.2.30 due to the reason that it was installed with node.js(under ...\Program Files(x86)\nodejs) AND the path always looks under \nodejs\ folder first and uses it. This is causing me problem in using some npm packages (including googleapis) on deployment. The errors appear

Java - How to Retrieve and use a single value from azure mobile services in Android

杀马特。学长 韩版系。学妹 提交于 2019-12-01 20:15:52
I am new to azure but i know certain things like how to retrieve and store data to azure , i followed azure official documentation for this purpose. Link is Here - https://azure.microsoft.com/en-in/documentation/articles/mobile-services-android-get-started-data/ But the problem is, this tutorial is only showing How to retrieve and use Data from azure using Adapters and Lists . I want to know , How can i retrieve a single value from azure mobile services and how to use it in android . Plzz provide me both backend code (if there is any) and java code for this . THANKS in advance I got it solved.

How to get the row count from an azure database?

做~自己de王妃 提交于 2019-12-01 18:00:55
问题 Am working on a windows store javascript application. The application uses data from azure mobile services. Consider the below code: var itemTable = mobileService.getTable('item'); //item is the table name stored in the azure database The code fetches the entire table item and saves it to a variable itemTable . What code will return the no of rows present in itemTable ?? 回答1: What you're looking for is the includeTotalCount method on the table/query object (unfortunately it's missing from the