azure-mobile-services

Azure Mobile Service with Facebook Auth: Get user info

邮差的信 提交于 2019-12-19 12:02:20
问题 I am new to using Azure Mobile Services (or any mobile dev). I've followed this tutorial to enable Facebook authentication for an Android app. http://azure.microsoft.com/en-us/documentation/articles/mobile-services-how-to-register-facebook-authentication/ My Mobile Service has a .NET backend and client is Android. I've also managed to save the access token to a table; public async Task<IHttpActionResult> PostTodoItem(TodoItem item) { var currentUser = User as ServiceUser; item.UserId =

Azure Mobile Service with Facebook Auth: Get user info

我的未来我决定 提交于 2019-12-19 12:01:42
问题 I am new to using Azure Mobile Services (or any mobile dev). I've followed this tutorial to enable Facebook authentication for an Android app. http://azure.microsoft.com/en-us/documentation/articles/mobile-services-how-to-register-facebook-authentication/ My Mobile Service has a .NET backend and client is Android. I've also managed to save the access token to a table; public async Task<IHttpActionResult> PostTodoItem(TodoItem item) { var currentUser = User as ServiceUser; item.UserId =

Access additional twitter user info

时光怂恿深爱的人放手 提交于 2019-12-19 11:18:23
问题 I'm using Azure Mobile Services to authorize users and am now trying to get additional user info from the providers. I have it working for all of them except Twitter. To authenticate for all the other I'm using something similar to this: var identities = await user.GetIdentitiesAsync(); var result = new JObject(); var fb = identities.OfType<FacebookCredentials>().FirstOrDefault(); if (fb != null) { var accessToken = fb.AccessToken; result.Add("facebook", await GetProviderInfo("https://graph

Authentication for Azure Mobile Web Services test pages

半城伤御伤魂 提交于 2019-12-19 06:07:01
问题 When developing a Azure Mobile Service I can run the test page when running locally. If I press the 'try it out' button i can test my api, but when published to Azure I need to authenticate to use the 'try it out' button. My question is what is the username and password for the test page when published to the cloud? I haven't specified any authorization in my project afaik. 回答1: You can use either the application key or the master key as password -- the username doesn't matter. You can get

Authentication for Azure Mobile Web Services test pages

空扰寡人 提交于 2019-12-19 06:06:13
问题 When developing a Azure Mobile Service I can run the test page when running locally. If I press the 'try it out' button i can test my api, but when published to Azure I need to authenticate to use the 'try it out' button. My question is what is the username and password for the test page when published to the cloud? I haven't specified any authorization in my project afaik. 回答1: You can use either the application key or the master key as password -- the username doesn't matter. You can get

Desktop client flow for MicrosoftAccount access to Azure Mobile Service API

帅比萌擦擦* 提交于 2019-12-19 04:24:16
问题 I have followed Adrian Halls book to create a cross platform app with a Mobile Service API backend. I have successfully got unsecured access to the backend working from Android, iOS and Desktop (WPF) clients. I am moving on to adding security to the API using the Authorise attribute. I would like to add social authentication using MicrosoftAccount (formerly passport/Live ID). Since Adrian wrote his book the Microsoft.Azure.Mobile.Client and the authentication and authorisation landscape seem

Convert sql object to valid Json string in node.js - Azure

馋奶兔 提交于 2019-12-19 04:18:10
问题 We are creating a web service in Azure service using node.js to retrieve data from SQL db. We are using ClearDB to do the same. While retriving the data its not comming in a proper JSON format. How can we convert the result sql object to JSON string. Below is my code. app.get('/android', function(request, response) { pool.getConnection(function(err, connection) { if(err) { handleErrorResponse(err, response); return; } var sql = "select projectname from taggedemployee where empname='test

How to use Azure Mobile App service with existing SQL database

試著忘記壹切 提交于 2019-12-19 03:38:11
问题 I've read many articles and tutorials that demonstrate how to use the Azure mobile service however I'm left unclear with many things. I have an existing web app that uses Azure SQL database and is published with Azure. I'm trying to integrate the already created database into the Xamarin Android App I'm developing. I'm confused with the following things. Do I need to change the .Net back end to be able to use the database tables in the Xamarin app? The way I see it, I shouldn't need to since

How can I determine whether I am connected to WiFi or a mobile network in Windows Phone 8.1 (Universal app)?

天涯浪子 提交于 2019-12-18 05:14:08
问题 I am working with a Windows Universal app (shared backend between Windows 8.1 and Windows Phone 8.1, not Silverlight). The app connects to Azure with Azure Mobile Services. In the settings for the app I would like to have an option for synchronisation to only occur over a WiFi network. How can I determine if the phone is connected to WiFi or a mobile network? Although from my research I have found ways to do this with older versions of Windows Phone and with Silverlight, it seems I can only

Upload file with Azure Storage using SAS (Shared Access Signature)

ε祈祈猫儿з 提交于 2019-12-18 02:49:49
问题 I know that there is library available for uploading the file using Azure Storage. I have refer this for same. But, they have not give information for how to use SAS with that. I have account name, and sas url for access and upload file there. But I don't know how to use that for uploading file. If I use above mention library it shows me invalid storage connection string because I am not passing the key in it (Which is not required with sas). So I am confused how I can upload file. I have