azure-mobile-services

Azure Mobile Services LoginAsync method not working with Microsoft Auth Token

偶尔善良 提交于 2021-02-08 07:57:25
问题 I have successfully been able to get an access_token (or authenticationToken for Microsoft tokens) using the client side authentication in my Xamarin forms App. I am able to get further user information (email, name, etc.) using the same access token. Now, when I try to pass that token to my Azure Mobile Service backend, I get a 401 error. Here is my code: private async System.Threading.Tasks.Task<string> MSGetUserInfo(Account account) { // Reference: http://graph.microsoft.io/en-us/docs

Azure Mobile Services LoginAsync method not working with Microsoft Auth Token

余生长醉 提交于 2021-02-08 07:57:21
问题 I have successfully been able to get an access_token (or authenticationToken for Microsoft tokens) using the client side authentication in my Xamarin forms App. I am able to get further user information (email, name, etc.) using the same access token. Now, when I try to pass that token to my Azure Mobile Service backend, I get a 401 error. Here is my code: private async System.Threading.Tasks.Task<string> MSGetUserInfo(Account account) { // Reference: http://graph.microsoft.io/en-us/docs

Has azure user ids changed their format?

谁说胖子不能爱 提交于 2021-01-29 08:55:19
问题 Good evening ppl at Microsoft! I have an Mobile App Service at Microsoft Azure Located at South Central US named CeneamApp. My backend is configured in a way so that my user can access only the data they capture, by making use of stable user ids. so I had followed Adrian Hall book to create an a user id (https://adrianhall.github.io/develop-mobile-apps-with-csharp-and-azure/chapter2/authorization/)with the following format sid:{identifier}as described here: (https://github.com/Azure/azure

Swift Azure Mobile QuickStart - Add and sync PNG image

纵然是瞬间 提交于 2020-02-06 08:25:07
问题 New to iPhone, Swift. Using XCode 9.3 I am trying to modify the Azure QuickStart iPhone Swift app to include an Images.xcassets PGN image. The app uses: https://github.com/MicrosoftDocs/azure-docs/blob/master/articles/app-service-mobile/app-service-mobile-ios-how-to-use-client-library.md I only want to work with 1 Azure Sql Server table and NOT use Azure BLOB storage. Method: Convert the PNG to Base64 String Swift code changes 1. QSTodoDataModel.xcdatamodeid - Added Attribute: pic, Type:

nodemailer on azure mobile service not working

瘦欲@ 提交于 2020-02-05 09:13:59
问题 I am trying to send mail with nodemailer. The script works on local machine but i am not able to include nodemailer in azure mobile service. Added 'nodemailer' : "*" in my package.json but still not able to include it. Logs says TypeError: Cannot read property 'prototype' of undefined I commented out complete logic but error was still there. Finally commented out var nodemailer = require('nodemailer'); and error was gone. 回答1: To get around this issue, you need to install an older version of

nodemailer on azure mobile service not working

安稳与你 提交于 2020-02-05 09:12:58
问题 I am trying to send mail with nodemailer. The script works on local machine but i am not able to include nodemailer in azure mobile service. Added 'nodemailer' : "*" in my package.json but still not able to include it. Logs says TypeError: Cannot read property 'prototype' of undefined I commented out complete logic but error was still there. Finally commented out var nodemailer = require('nodemailer'); and error was gone. 回答1: To get around this issue, you need to install an older version of

SignalR CORS on Azure Mobile Services Web Api

安稳与你 提交于 2020-01-30 08:11:51
问题 I have an Azure Mobile Service running Web Api and c# and enabled CORS as suggested in Enable CORS on Azure Mobile Serivce .NET Backend however I have now come to add SignalR into the mix. SignalR is working fine however I can't see to find how to enable CORS. At present in my test app config I have the following: //enable CORS for WebAPI var cors = new EnableCorsAttribute("*", "*", "*"); httpconfig.EnableCors(cors); //rather than use the static method new up SignalRExtensionConfig and pass