angularjs - Angular Azure 移动服务客户端 API key 用法

标签 angularjs azure azure-mobile-services

我正在考虑使用 Angular Azure Mobile Service Client对于一个项目,我看到了这个示例代码:

 angular.module('your-module-name').constant('AzureMobileServiceClient', {
    API_URL : 'https://<your-api-url>.azure-mobile.net/',
    API_KEY : '<your-api-key>',
  });

在像这样的 AngularJS 应用程序(或任何基于 JavaScript 的客户端)中使用 API key 是否安全?我不确定如果有人拥有这把 key ,他们可以做什么?

最佳答案

找到this在 Azure 移动服务文档中:

With default permissions, anyone with the app key may call the custom API. However, the application key is not considered a secure credential because it may not be distributed or stored securely. Consider restricting access to only authenticated users for additional security.

关于angularjs - Angular Azure 移动服务客户端 API key 用法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32151682/

相关文章:

node.js - VSTS部署成功后如何在azure应用程序服务上运行npm命令?

azure - Azure Blob 索引器的问题

c# - Azure 移动服务是否允许我在应用程序之间交换有针对性的消息?

javascript - 为什么我在 Jasmine 1.3.x 中的 AngularJS 异步测试不起作用?

javascript - AngularJS 搜索对象数组

javascript - Protractor E2E 测试 - 如何通过其中继器获取表格标题?

azure - 如何在 Kubernetes Yaml 文件中将 pod 限制取消设置为无限制?

javascript - Angularjs - 从 ng-option 返回数据

android - Sqlite Azure 移动服务 SDK 中的连接池已关闭

c# - LINQ 运算符在泛型方法内部使用时不支持任何成员