azure-mobile-services

“Microsoft Azure App Service” target not appearing in visual studio 2015 while clicking on Publish

时光毁灭记忆、已成空白 提交于 2019-12-01 15:59:01
问题 I am trying to run the Xamarin.Android app from Microsoft Azure Guides. According to the guide I am supposed to right-click on the Service project and Rebuild, after that on clicking Publish I get the Publish Target window but there is no target of Azure App Service. I only get Target of Azure Web Apps 回答1: I'm assuming the project to which you refer is the "QuickStart" server-side project that is downloaded and named yoursite -Runtime.zip. When unpacked, you get a folder yoursite_AppService

Azure Mobile Service with Facebook Auth: Get user info

耗尽温柔 提交于 2019-12-01 14:07:48
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 = currentUser.Id; TodoItem current = await InsertAsync(item); return CreatedAtRoute("Tables", new { id =

Access additional twitter user info

这一生的挚爱 提交于 2019-12-01 13:28:12
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.facebook.com/me?access_token=" + accessToken)); } Would I be able to do something like this: var tw =

Live Connect Authentication Token for use on Azure Mobile Services (REST)

馋奶兔 提交于 2019-12-01 12:54:58
I have a simple Windows Forms Application to try Live Connect and Azure Mobile Services. Not a Windows 8 Modern App. I'm trying to make use of some sample code for Live Connect and have been able to get the sign-in part to work fine. In the end I get an access_token after signing in. On the Mobile Services side in the same Windows Forms Application, I'm trying to use REST to login. However, I seeem to get an "401 Unauthorized" response because "The authentication token's signature was malformed or signed by a different key" JWT seem to have two '.' in the token. SWT seem to have '/', '+' and '

Live Connect Authentication Token for use on Azure Mobile Services (REST)

自作多情 提交于 2019-12-01 10:58:41
问题 I have a simple Windows Forms Application to try Live Connect and Azure Mobile Services. Not a Windows 8 Modern App. I'm trying to make use of some sample code for Live Connect and have been able to get the sign-in part to work fine. In the end I get an access_token after signing in. On the Mobile Services side in the same Windows Forms Application, I'm trying to use REST to login. However, I seeem to get an "401 Unauthorized" response because "The authentication token's signature was

Requests to MS Graph API gives me “Authorization Request Denied - Insufficient privileges to complete the operation”

廉价感情. 提交于 2019-12-01 10:43:19
I have a question about "Authorization Request Denied - Insufficient privileges to complete the operation" message that I keep getting back from my requests to Windows Graph API. Specifically, I'm working in Azure cloud. I have an iOS mobile app that invokes an API. I have turned on "Authentication for Active Directory" in my Portal. Then, on the client side (iOS): [self.todoService.client loginWithProvider:@"windowsazureactivedirectory" controller:self animated:YES completion:^(MSUser *user, NSError *error) { if(!error && user) { [self refresh]; } }]; //loginWithProvider So returns a valid

NotificationHub Push Notification returns : The Token obtained from the Token Provider is wrong

一笑奈何 提交于 2019-12-01 08:11:09
I have Wp8.1 Silverlight app that receives push notification (WNS) from Mobileservice (the old azure service). I therefore wanted to update to the new service because of the new features. I have now created/upgraded a new server to use App Service - Mobile App. And tested push notification with the sample app from azure (everything works). Going back to my app WP8.1 -> Adding the new package Microsoft.Azure.Mobile.Client through NuGet (2.0.1), there is the issue that the Microsoft.WindowsAzure.Mobile.Ext does not contain the 'GetPush' extension. It seems like it is missing it? looking to the

NotificationHub Push Notification returns : The Token obtained from the Token Provider is wrong

梦想的初衷 提交于 2019-12-01 06:16:00
问题 I have Wp8.1 Silverlight app that receives push notification (WNS) from Mobileservice (the old azure service). I therefore wanted to update to the new service because of the new features. I have now created/upgraded a new server to use App Service - Mobile App. And tested push notification with the sample app from azure (everything works). Going back to my app WP8.1 -> Adding the new package Microsoft.Azure.Mobile.Client through NuGet (2.0.1), there is the issue that the Microsoft

How to safely call Azure Function with function level authorization in Xamarin mobile app?

二次信任 提交于 2019-12-01 05:26:16
I'm making an iOS/Android app using Xamarin (not Xamarin.Forms, just regular Xamarin). I'm using the shared library set up rather than PCL. I want my app to call an Azure function but I'm unsure of the safest/best way to handle this. I have it set to "Function" for the "Authorization level". The test URL includes the "?code=..." portion in it. I was under the impression that if I put that in my C# code with the "code" value exposed that it was considered a bad idea from a security perspective. I'm lost as to the safest/best way to deal with this. I've read that setting it in app.config is also

Authenticate against an Azure Mobile Service App with ADAL.js acquired token

馋奶兔 提交于 2019-12-01 05:18:24
I'm trying to authenticate a HTML app against an Azure Mobile Service app. The Setup Both apps use AAD as authentication backend, so both apps have an application registered in the Active Directory: Azure Mobile Service app: configured as described in https://azure.microsoft.com/en-gb/documentation/articles/mobile-services-how-to-register-active-directory-authentication/ I edited the manifest to enable the client flow Enable "single sign-on and read users profiles" under "permissions to other applications" for "Windows Azure Active Directory" HTML app: in "permissions to other applications" i