How do I access an Azure Mobile Service as an admin from an app?
I am currently attempting to create a phone app that has some admin-only
functions (like doing database metrics and logistics). Unfortunately, for
the life of me I can't get it to recognize me as having user.level ==
'admin'. I've used the service master secret as the entry for the Mobile
Service client, I've logged in using my administrator Microsoft Live
account, I've tried different settings in the script permissions itself,
all to no avail. Each time, it logs me as being authenticated instead of
admin.
Currently my C# code is:
var user = await
App.MobileService.LoginAsync(MobileServiceAuthenticationProvider.MicrosoftAccount);
var result = await
App.MobileService.GetTable<MyDataRowObject>().ToListAsync();
I then access the result as an IEnumerable.
Thanks!
No comments:
Post a Comment