azure-mobile-services

Save information immediately after Google login in Azure Mobile Services (.NET Back-end)

∥☆過路亽.° 提交于 2019-12-21 06:46:32
问题 What I basically want to be able to do is authenticate to azure mobile services (using google or some other provider), and immediately save some of the user information (i.e. email address) on the server. I know I could call a custom method from the app after authentication, but I was hoping to have some hook to do this straight after the google login on the server side. Is this possible? How do I do it?! 回答1: This is currently only possible in the .NET runtime. If using the Node runtime, you

Save information immediately after Google login in Azure Mobile Services (.NET Back-end)

梦想的初衷 提交于 2019-12-21 06:46:17
问题 What I basically want to be able to do is authenticate to azure mobile services (using google or some other provider), and immediately save some of the user information (i.e. email address) on the server. I know I could call a custom method from the app after authentication, but I was hoping to have some hook to do this straight after the google login on the server side. Is this possible? How do I do it?! 回答1: This is currently only possible in the .NET runtime. If using the Node runtime, you

Can't Authenticate with Local .NET back-end

喜夏-厌秋 提交于 2019-12-21 04:51:45
问题 I've followed the guide: Getting Started with Authentication with Mobile Services .NET for Windows Store I'm able to run the service locally as long as I don't need to authenticate the user. I can also authenticate the user if I publish the service to Azure. But I want to be able to test and authenticate the user locally. How can this be done? I'm using Live ID and I have the correct ClientID and ClientSecret set in the Web.config. When I attempt to call LoginAsync from the client the call

Cannot create more than one clustered index on table

≡放荡痞女 提交于 2019-12-21 03:55:19
问题 I am having the following error after typing update-database: Cannot create more than one clustered index on table 'dbo.AppUsers'. Drop the existing clustered index 'PK_dbo.AppUsers' before creating another. I am working on an Azure mobile service. I have three data models: public class AppUser : EntityData { public string Username { get; set; } public virtual ICollection<RatingItem> userRatings { get; set; } } public class PlaceItem : EntityData { public string PlaceName { get; set; } public

MS Azure - Bad Request 400

徘徊边缘 提交于 2019-12-20 05:53:01
问题 I keep getting a bad request error every time I run this line of code: List<Account> accounts = await App.accountTable.Where(account => account.EmailAddress == email).ToListAsync(); Here is the error message: A first chance exception of type 'Microsoft.WindowsAzure.MobileServices.MobileServiceInvalidOperationException' occurred in mscorlib.dll Microsoft.WindowsAzure.MobileServices.MobileServiceInvalidOperationException: The request could not be completed. (Bad Request) at Microsoft

Using Azure traffic manager with Mobile App

雨燕双飞 提交于 2019-12-20 04:52:11
问题 Can Azure Traffic Manager be used with Mobile Apps specially with social login? I have configured a traffic manager and two app services (say, mobileapp1 and mobileapp2) to work with it.They seem to work pretty nice with postman and the response and everything is working. Now, I have declared traffic manager's URL as client in xamarin client app and the app throws exception when I am logging in into azure. After logging in facebook, when I am passing the token to server using this line var

How to get email address from Azure AD B2C authentication?

依然范特西╮ 提交于 2019-12-20 04:43:34
问题 I am trying to get Azure AD B2C to get the users email address but I don't see anything in the token that provides it, even though my signin/signup policy makes a "claim" on the users email address. How do you do I get the email address? More generally, is there any documentation other than the samples that explains how this service is intended to work? 回答1: Under application claims, check Email Addresses . Here's some documentation about selecting claims/setup. 来源: https://stackoverflow.com

How to get email address from Azure AD B2C authentication?

ε祈祈猫儿з 提交于 2019-12-20 04:43:04
问题 I am trying to get Azure AD B2C to get the users email address but I don't see anything in the token that provides it, even though my signin/signup policy makes a "claim" on the users email address. How do you do I get the email address? More generally, is there any documentation other than the samples that explains how this service is intended to work? 回答1: Under application claims, check Email Addresses . Here's some documentation about selecting claims/setup. 来源: https://stackoverflow.com

JavaScript Object property always returns undefined [duplicate]

╄→гoц情女王★ 提交于 2019-12-20 04:04:07
问题 This question already has answers here : How can I access and process nested objects, arrays or JSON? (23 answers) Closed 5 years ago . Tell me what I am missing here. I have the follow javascript object. [ { id: '16B0C2FC-A008-4E8A-849B-DB1251C8CABD', handle: '123', userId: 'ABC123'} ] When I do the following success: function (registration) { console.log(registration); console.log(registration.handle); Console log writes out the object as defined above. However when I do registration.handle

How to get user name, email, etc. from MobileServiceUser?

孤人 提交于 2019-12-20 03:59:16
问题 After a lot of digging around I've got my WPF application signing users in via Azure Mobile Service. My Mobile Service is connected to an Azure Active Directory that I have set up. However, when I log the user in with MobileServiceClient.LoginAsync(...) the MobileServiceUser UserId is in an unreadable hash it seems. For example it looks like: "Aad:X3pvh6mmo2AgTyHdCA3Hwn6uBy91rXXXXXXXXXX". What exactly is this? I'd like to grab the user's display name to use but I can't figure out how. 回答1: