Auth0:如何从Action调用外部API?

问题描述 投票:0回答:1

登录时需要从“Action”调用外部API。 目前,我已使用以下链接配置了 Auth0 门户:- https://community.auth0.com/t/how-do-i-call-my-api-from-an-action/69041

我正在本地运行连接到 Auth0 的 api。 从操作中,我可以从操作中调用以下内容:-

axios.get('https://api.github.com/users/mapbox')
    .then((response) => {
      console.log(response.data);
      console.log(response.status);
      console.log(response.statusText);
      console.log(response.headers);
      console.log(response.config);
    });

我有在本地运行的 API,我想在 Action 中使用相同的 API(Web API 尚未在互联网上公开),但它不起作用。我知道这听起来很奇怪,在 Action 中调用本地运行的 API,但我仍然想知道是否有方法在 Action 中调用此 api。

任何意见都会有帮助。

仅供参考 - 我能够生成令牌。

致以诚挚的问候

asp.net-core-webapi auth0
1个回答
0
投票

与 Auth0(现在由 Okta 所有)团队核实后,我们无法调用本地运行的 Web API(本地主机)。

致以诚挚的问候

© www.soinside.com 2019 - 2024. All rights reserved.