新 Azure App 服务的关键在哪里? [英] Where is the key in new Azure App service?
问题描述
在使用经典 Azure 移动服务时,您过去常常获取移动服务应用程序的密钥和 URL.此密钥还用于探索后端站点上的 API被用作密码.
While using the classic Azure Mobile services, you used to get a key along with a URL for your Mobile Service app. This key was also used to explore the APIs on your backend site & was used as a password.
使用新的 Azure 应用服务,您只需使用如下 URL 即可实现移动服务客户端
With new Azure App services all you need to instntiate the mobile service client is the URL like below
private static readonly MobileServiceClient MobileService = new MobileServiceClient("https://thecityapp.club");
没有密钥 *第二个参数可用于 Azure 移动服务.现在使用什么作为密码来探索 Web 上的 API?
There is no key *a second parameter that was available with Azure Mobile services. What is now used as password to explore the APIs on the web?
推荐答案
Supreet,
对于应用服务/移动应用,不再使用/需要应用程序密钥,这就是它在门户上不再可用的原因.您可以使用上述代码实例化客户端,并在没有这些信息的情况下开始使用服务 API.
With App Services/Mobile Apps, the application key is no longer used/required, that is why it is no longer available on the portal. You can instantiate the client with the above code and start consuming the service APIs without that information.
有关身份验证,请参阅此文档:https://azure.microsoft.com/en-us/documentation/articles/app-service-mobile-windows-store-dotnet-get-started-users/
For authentication, please refer to this documentation: https://azure.microsoft.com/en-us/documentation/articles/app-service-mobile-windows-store-dotnet-get-started-users/
我希望这会有所帮助.
这篇关于新 Azure App 服务的关键在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!