Tag: 3scale

如何从服务器和客户端的angular度来使用3Scale的`authrep`函数?

我正在尝试使用使用3Scale的APIpipe理的nodejs来设置原型API。 我已经能够find他们的插件集成代码,如下所示: var ThreeScale = require('3scale').Client; // keep your provider key secret var client = new ThreeScale("X"); // you will usually obtain app_id and app_key from request params client.authrep({ app_id: "Y", app_key: "Z" }, function(response){ if(response.is_success()) { // continue } else { throw new Error("not authorized " + response.error_message); } }); 这对我来说是服务器模块的一部分。 但是,我不确定客户的凭证在那个等式中。 我看到,因为客户端指向你的应用程序,这里是应用程序的密码…但实际客户端的用户名/密码怎么样!? 在哪里检查? […]