auth0 允许客户使用访问令牌连接到我的应用



感谢您阅读这个问题。

我们希望我们的用户使用批处理从我们的服务器获取数据。

他们正在使用node.js。

这就是我试图这样做但没有成功的事情。 你能帮帮我吗?

var AuthenticationClient = require('auth0').AuthenticationClient;
var auth0 = new AuthenticationClient({
domain: '...',
clientId: '...'
});
var data = {
username: 's@gmail.com  ',
password: '*****'
};
console.log(auth0.oauth.oauth.token); //<---- undefined
auth0.oauth.token(data, function (err, userData) {
if (err) {    // Handle error.  }
console.log(userData);
});

非常感谢

去吧,而不是使用emailpassword

我必须使用client_id登录,client_secrect是专门为我的客户生成的。 具有特定权限。

使用 API 菜单下的管理用户界面。

谢谢大家

相关内容

最新更新