Azure Mobile App MSA Authentication Difficulties

前端 未结 1 1886
太阳男子
太阳男子 2021-01-28 13:54

So I\'m working on a project to redeploy an application that was previously hosted as an Azure Mobile Service as an Azure Mobile App. Said application has a frontend (hosted as

1条回答
  •  抹茶落季
    2021-01-28 14:06

    According to your description, I assumed that you are using the JavaScript client library for Azure Mobile Apps. I checked this issue on my local side and found I could encounter the same issue as you mentioned as follows:

    Then I tried to deploy it to azure web app (https://brucechen-mobile.azurewebsites.net/login.html), I found it could work as follows:

    After searched the web I found a similar issue and refer to this blog about Fix the Ripple Issues. I log onto azure portal and choose my mobile app, then click "All Settings > CORS", add the URL for my local web application as follows:

    Then, click "SETTINGS > Authentication / Authorization", add the ALLOWED EXTERNAL REDIRECT URLS as follows:

    Based on the above settings, it could work as expected on my local side as follows:

    0 讨论(0)
提交回复
热议问题