我已经创建了Azure 移动应用,并且我正在遵循官方文档。在身份验证期间,说明了以下部分文档
In the Allowed External Redirect URLs, enter url_scheme_of_your_app://easyauth.callback. The url_scheme_of_your_app in this string is the URL Scheme for your mobile application. It should follow normal URL specification for a protocol (use letters and numbers only, and start with a letter). You should make a note of the string that you choose as you will need to adjust your mobile application code with the URL Scheme in several places.
我的问题是他们没有提供重定向网址的任何有效示例,因此我在重定向中粘贴了url_scheme_of_your_app://easyauth.callback门户中的 url 会出现错误,因为它不是有效的格式,所以有人可以给我这个 url 的有效示例吗?
提前致谢
最佳答案
对于那些仍在努力弄清楚 Azure 中的“MobileAppUrl”、“url_scheme_of_your_app”和“redirectUriScheme”到底是什么的人,这里有一个示例:假设您的 Azure 移动应用程序名为 myapp,您将拥有以下内容:
移动应用 URL: https://myapp.azurewebsites.net
url_scheme_of_your_app: 我的应用
redirectUriScheme: myapp://easyauth.callback
了解 Azure 门户中的身份验证设置的“允许的外部重定向 URL”也很有用:
myapp://easyauth.callback
关于Azure移动应用程序身份验证外部重定向URL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46294796/