azure-mobile-services

Putting multiple values in a WHERE clause in Azure Mobile Services

二次信任 提交于 2020-01-05 04:59:09
问题 I'm trying to figure out how to put multiple values into a WHERE clause; this is the kind of thing you'd use a IN clause for in SQL. My current code: if (Log.Count() == 1) { items = itemTable .Where(Item => Item.id == Log[0].i_id) .ToCollectionView(); } else if (Log.Count() == 2) { items = itemTable .Where(Item => Item.id == Log[0].i_id || Item.id == Log[1].i_id) .ToCollectionView(); } else if (Log.Count() == 3) { items = itemTable .Where(Item => Item.id == Log[0].i_id || Item.id == Log[1].i

(C#) Azure - Null Reference Exception during Live Authentication

≡放荡痞女 提交于 2020-01-04 13:47:04
问题 I followed the Live Authentication tutorial on the Azure Mobile Services page (http://www.windowsazure.com/en-us/develop/mobile/tutorials/single-sign-on-windows-8-dotnet/) and when I run this line of code LiveLoginResult result = await liveIDClient.LoginAsync(new[] { "wl.basic" }); I get a "NullReferenceException" no matter what I do. I tried changing "wl.basic" to "wl.signin" and that didn't work either. I am signed into my Microsoft Account, I get the pop-up to allow it to login, the app is

Android Azure Mobile Services Google auth

谁说胖子不能爱 提交于 2020-01-04 11:04:24
问题 The Azure MobileServiceClient in built authenticator shows a webview when trying to log in using an Android device. Is there a way such that it can be used to call the Play Services Login Dialog box and log in through there? I was following the tutorial given here. 回答1: Yes, you can use a "Client Directed Flow", assuming the Google Play Services Login Dialog produces a standard Google token and you know the Client ID of the Google App. 1) Configure Azure Authentication / Authorization for

Android Azure Mobile Services Google auth

荒凉一梦 提交于 2020-01-04 11:04:05
问题 The Azure MobileServiceClient in built authenticator shows a webview when trying to log in using an Android device. Is there a way such that it can be used to call the Play Services Login Dialog box and log in through there? I was following the tutorial given here. 回答1: Yes, you can use a "Client Directed Flow", assuming the Google Play Services Login Dialog produces a standard Google token and you know the Client ID of the Google App. 1) Configure Azure Authentication / Authorization for

Azure Mobile Service Paging Limitation

左心房为你撑大大i 提交于 2020-01-03 00:00:11
问题 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

How do I secure an Azure Mobile Service with Azure AD? ADAL.JS

大憨熊 提交于 2020-01-02 20:18:33
问题 I have created an application in my Azure AD. I switch into the Mobile Service and go to the identity tab. For MS identity is asks for a client ID. I found the Client ID in the Azure AD configure tab. However, I had no idea what to use for Client Secret and Package SID. It seems like it is expecting you are using a Windows Store app to access the service rather than a Javascript app which is what I am working with. So, my question is, how do you secure an Azure Mobile Service with Azure AD

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

青春壹個敷衍的年華 提交于 2020-01-01 19:24:31
问题 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 回答1: This might happen if keychain sharing is disabled. One of the probable solution is: Solution: Step 1: Xcode > Target > Capabilities > Keychain Sharing -> Switch to

Registering and login users in Azure Mobile Services

旧城冷巷雨未停 提交于 2020-01-01 05:15:05
问题 I was following this series about Mobile Services and I am using examples in latest tutorial. Now I want to impelement registering and login in Windows Phone for example. I changed to Insert permission to anyone with application key and I can Insert new user by this code: await accountTable.InsertAsync(new accounts() { Username = "admin", Password = "mypassword" }); But I don't know how can I now check for login user? How to get token? 回答1: The post you referred was written at the end of last

IMobileServiceClient.PullAsync deadlock when trying to sync with Azure Mobile Services

无人久伴 提交于 2019-12-31 04:02:47
问题 I have the classes below. public class AzureMobileDataContext : IAsyncInitialization { private static readonly Lazy<AzureMobileDataContext> lazy = new Lazy<AzureMobileDataContext> (() => new AzureMobileDataContext( new MobileServiceClient( "http://myservice.azure-mobile.net/", "123456789ABCDEFGHIJKLMNOP"))); public static AzureMobileDataContext Instance { get { return lazy.Value; } } public Task Initialization { get; private set; } public IMobileServiceClient Context { get; private set; }

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

本秂侑毒 提交于 2019-12-30 11:06:59
问题 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,