azure-mobile-services

Azure Mobile Service LoginAsync with Facebook Token is Unauthorized

痴心易碎 提交于 2019-12-08 06:38:14
问题 I'm following the post at http://ntotten.com/2013/03/14/using-windows-azure-mobile-services-with-the-facebook-sdk-for-windows-phone/ and I can successfully get a Facebook access token. However when I submit the access token as a JObject to the MobileServiceClient.LoginAsync(provider, token) method I get an IvalidOperationException (Unauthorized) . The Code, Request and Response (from the exception) are below... Code private async Task Authenticate() { while (user == null) { try { fbSession =

Uploading to azure blob storage from SAS URL returns 404 status

混江龙づ霸主 提交于 2019-12-08 04:41:26
问题 I am using Azure Mobile Services API endpoint to return a private shared access signature URL to my azure storage container like so: var blobService = azure.createBlobService(accountName, key, host); blobService.createContainerIfNotExists(containerName, function(err) { if (err) { cb(err, null); return; } // Generate a 5 minute access var expiryDate = minutesFromNow(5); var sharedAccessPolicy = { AccessPolicy: { Permissions: azure.Constants.BlobConstants.SharedAccessPermissions.WRITE, Expiry:

Owin- Slow CompatibleWithModel call

大兔子大兔子 提交于 2019-12-08 03:47:37
问题 I have this line of code within a request of an ApiController of an Azure Mobile App Web API : var user = t.TrackDependency(() => context.Users.SingleOrDefault(x => x.Email == loginRequest.Id || x.Name == loginRequest.Id), "GetUser"); Here is the result from Application Insights: We can see that while the line of code took 2613ms, the actual query call to the database took 190ms. While this is an edge case it happens often enough to get complaining users about slow performance. The thing is I

No application keys for Azure Mobile Apps - what's a simple replacement?

我们两清 提交于 2019-12-08 03:28:14
问题 I've been using Azure Mobile Services and now I created one of the new Mobile Apps via the all new Azure Portal. While using Mobile Services it was possible to limit API access via an application key. The concept of this key no longer applies to Mobile Apps it seems. All I need is a really lightweight protection of my services, exactly what the Application Key did. I just want to prevent that everybody out there navigates to my Azure app and messes around with my database; the App Key was

3rd Party Library “cordova-plugin-ms-azure-mobile-apps” not getting recognized in my Ionic 2 app

删除回忆录丶 提交于 2019-12-08 03:02:17
问题 After looking everywhere (and going through the past forum topics on all sorts of websites) for the last 2 days and no solution, I am posting here as a last resort. I understand everybody is busy but this is killing me. I have tried everything possible from creating the app from scratch multiple times to adding one library at a time then run and make sure it's working then add another library and then run the app... Everything is good until I add " cordova-plugin-ms-azure-mobile-apps " in my

Azure Mobile Apps offline WEBSITE_AUTH_SIGNING_KEY

给你一囗甜甜゛ 提交于 2019-12-08 02:52:13
问题 When trying the Azure Mobile Apps offline (in Visual Studio and local IIS with SSL), one has to supply an alternative to Azure's WEBSITE_AUTH_SIGNING_KEY as the SigningKey for the JWT tokens. How can you generate a dev SigningKey? 回答1: In order to test authenticated endpoints locally you need to use the same signing key that was used to generate the auth token (JWT). If you are logging in against your cloud site, this means that locally you must validate the token using the same signing key.

azure mobile service active directory authentication X-ZUMO-AUTH token valid in postman after logout

微笑、不失礼 提交于 2019-12-08 02:37:57
问题 I have Azure Mobile Service and AD set up for authentication. Log out and login works perfectly through mobile app. AD application reply url is https://test.azure-mobile.net/signin-aad client = new MobileServiceClient (applicationURL, applicationKey); var authResult = await client.LoginAsync(this, MobileServiceAuthenticationProvider.WindowsAzureActiveDirectory); var data = await client.InvokeApiAsync("testAPI", HttpMethod.Get, null); //Works client.Logout(); // LOGOUT var data = await client

LoginAsync missing

懵懂的女人 提交于 2019-12-08 01:42:57
问题 I wrote an Android application that uses Azure to perform user login with Google, Twitter and Facebook; it uses Microsoft.WindowsAzure.MobileServices.Android.dll and with this I'm able to do something like await Client.LoginAsync(context, MobileServiceAuthenticationProvider.Google); (in Azure I set ids and secrets to use Google, Facebook and Twitter). Now I'm developing a Windows app (desktop app) using Windows 7 , VS2012 and Framework 4.5 and I'd like to perform same login (so I can get

Azure MobileApp custom authentication, refresh token

情到浓时终转凉″ 提交于 2019-12-07 17:14:02
问题 I need my app to support custom authentication against our private database, and following the advices on Adrian Hall book here https://adrianhall.github.io/develop-mobile-apps-with-csharp-and-azure/chapter2/custom/ I got no problem authenticating my users. The problem comes when I need to refresh the access token. As I'm forced to stay with custom auth, I have the following questions: 1) Should I call MobileServicesClient.RefreshUserAsync(), and if so, what kind of endpoint should I

Using ASP.NET 4.0 membership provider with Azure Mobile Services

流过昼夜 提交于 2019-12-07 16:55:49
问题 Ive come up against a major problem. I am building a system which emloys a ASP.NET 4 Web App > Azure SQL > Azure Mobile Service > Windows Phone 8 app. The data is inputed into the Web Site which is already hosted on azure and which employs the Membership Provider and hence its default tables. This data is stored already successfully on Azure SQL db. My major obstacle is Azure Mobile Services requires each and every table on it to have their primary key to be called "id" - lower case! Crazy in