azure-mobile-services

How to retrieve user's additional information from Azure Mobile/App Services?

淺唱寂寞╮ 提交于 2019-12-04 19:18:14
I need to get the user's extra information from social accounts like Facebook and Google+. When I first read about Azure Mobile Services I thought it to be the holy grail of social authentication. Well, after a full week of hair pulling I'm starting to reconsider my first impression. It does authenticate as easily as it could possibly do. I configured Google+ and FB to work with Azure, configured Azure to use the key/secret from each provider and it all just worked. I was able to login perfectly. The problem started when I tried to get information from the logged user, which I honestly think

The user credentials are need to obtain access token. Please call the non-silent acquireTokenWithResource methods

こ雲淡風輕ζ 提交于 2019-12-04 17:49:27
I am using ADALiOS into my app for authentication. When user signIn into the app I am getting following error: "The argument 'cacheItem.scopes' is invalid. Value:(null)." and "The user credentials are need to obtain access token. Please call the non-silent acquireTokenWithResource methods" Any help would be appreciated. Thanks This might happen if keychain sharing is disabled. One of the probable solution is: Solution: Step 1: Xcode > Target > Capabilities > Keychain Sharing -> Switch to ON Step 2: add com.microsoft.adalcache into Keychain Group. Hope this helps. There is a pattern for dealing

Architecture of Azure Mobile Services Application

女生的网名这么多〃 提交于 2019-12-04 16:43:09
I'm trying to piece together an architecture for a Windows Universal App leveraging Azure Mobile Services. It's a LOB app and will need to handle 100-250 offline\online tables. Currently Mobile Services doesn't support nested complex objects so on the service side I've mapped most of my tables straight through from entity framework. The question I have is whether I should use a separate layer to reconstitute the DTO's or if i should be doing this all through the service layer and the view model. My main concerns are isolation of responsibility (large team) and the performance overhead from the

Azure/Xamarin Mobile App Hangs at SyncContext.InitializeAsync

老子叫甜甜 提交于 2019-12-04 16:04:41
So, I had a working xamarin forms app that used azure mobile services. I upgraded the server side to use mobile app service and upgraded the nugets in my client to use the latest and greatest client codes. I manually updated my test/ios simulator sqlite db to use the proper column names for the system properties since they dropped the double underscore prefix. When I finally got it all built and tried to run in the ios 6/8.3 simulator it ran fine until it hit the InitializeAsync method. It doesn't throw (its in a try catch) and I let it run for a long time and it just sits there. I then tried

Two Azure Mobile Services (.NET backend) sharing the same Database

不羁岁月 提交于 2019-12-04 13:40:02
问题 I have two Azure Mobile Services (.NET backend) which share the same Azure Database. Let say Service "X" and "Y". The database is created by service "X" (when it ran for the first time) and created tables "TA" with schema name "X". Then I ran service "Y" which created the same tables "TA" and "TB" in the same database but with schema name "Y". Now I want to make service "Y" to use schema "X" to make sure both services use the same data. Inside the "TADataController" I changed the code to:

How do you securely access Windows Azure Mobile Services with Javascript in a web app?

僤鯓⒐⒋嵵緔 提交于 2019-12-04 12:57:43
I need a primer web/javascript security. According to How to use an HTML/JavaScript client for Windows Azure Mobile Services , in javascript on the client side, after including a link to MobileServices.Web-1.0.0.min.js you're supposed to create a client like this: var MobileServiceClient = WindowsAzure.MobileServiceClient; var client = new MobileServiceClient('AppUrl', 'AppKey'); which means including my AppKey in the javascript on the page. Should I be worried about the AppKey being public? Also, it seems easy enough for someone to put an XHR breakpoint in to read the X-ZUMO-APPLICATION and X

JwtSecurityToken exception while decoding Azure Mobile Services JWT token

孤街浪徒 提交于 2019-12-04 04:29:44
问题 The following code: using System.IdentityModel.Tokens; JwtSecurityToken jwtSecurityToken = new JwtSecurityToken(rawToken); Generates the following exception: Jwt10113: Unable to decode the 'header' The value "0" is not of type "System.String" and cannot be used in this generic collection. Parameter name: value When the 'header' section of the rawToken is: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCIsImtpZCI6MH0 Which can be decoded to: {"alg":"HS256","typ":"JWT","kid":0} The source of the faulting

Why is there a string ID in the data model of Azure Mobile Apps?

做~自己de王妃 提交于 2019-12-04 02:06:46
I'm working the C# in Azure Mobile Apps trying to learn them. I created the Model to link to my Azure SQL DB, created a DataObject like this: public class Account : EntityData { //public int id { get; set; } public string FirstName { get; set; } public string LastName { get; set; } public string PhoneNumber { get; set; } public string Password { get; set; } public DateTime dtCreated { get; set; } public Guid oGuid { get; set; } } Notice that I commented out the public int id above; it was giving me a duplicate column error on the query. Finally, I created a controller using the newly created

Uploading a file in Azure File Storage using node.js

烈酒焚心 提交于 2019-12-03 22:44:21
We are trying create an webservice to upload files to Azure file storage using node.js service. Below is the node.js server code. exports.post = function(request, response){ var shareName = request.headers.sharename; var dirPath = request.headers.directorypath; var fileName = request.headers.filename; var body; var length; request.on("data", function(chunk){ body += chunk; console.log("Get data"); }); request.on("end", function(){ try{ console.log("end"); var data = body; length = data.length; console.log(body); // This giving the result as undefined console.log(length); fileService

Android and Azure Mobile Services: Using invokeAPI to return recordset

给你一囗甜甜゛ 提交于 2019-12-03 20:04:19
I am trying something very simple. I have a custom API called "missingvehiclesfrominventoryjob" and it simply returns a record set from an standard SQL Query. I can do this in my WinForms and Windows Phone app easily but I cannot figure out how to do this on the Android App. Here is my code: (which DOES NOT COMPILE in Android Studio): msClient.invokeApi("missingvehiclesfrominventoryjob", kd, new ApiOperationCallback<List<InventoryProspects>>(){ @Override public void onCompleted(List<InventoryProspects> missingVehicles, Exception e, ServiceFilterResponse serviceFilterResponse){ for