回调URL在本地的Auth0中不工作。

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

我正在尝试配置使用Auth0登录。作为初始步骤的一部分,我创建了一个应用程序,并添加了允许回调URL和允许登出URL。我的应用程序中没有托管的页面。/login, /login-results, /logout 路由。我只是想通过获取Auth0中的 JWT 令牌,并在 http:/jwt.io.

enter image description here

我尝试使用Auth0中开箱即用的登录UI流程。我创建了如下的登录URL 文档 打这个端点

GET https://YOUR_DOMAIN/authorize?audience=API_IDENTIFIER&scope=SCOPE&response_type=code&client_id=YOUR_CLIENT_ID&redirect_uri=https://YOUR_APP/callback&state=STATE

但是当我使用上述回调URL使用我的应用程序的凭证创建的端点执行时,我得到了这个错误。

http:/127.0.0.1:8080login-results#error=access_denied&error_description=Service%20not%20found%3A%20name。

enter image description here

我生成的端点。

https://fsnd-kavin.auth0.com/authorize?audience=audiencename&response_type=token&client_id={CLIENT_ID}&redirect_uri=http://127.0.0.1:8080/login-results

到底是什么问题?我是否遗漏了其他配置?

authentication auth0 flask-login
1个回答
1
投票

未找到服务

此错误消息指向您传递了不存在的API标识符作为受众。检查 API 是否在 Dashboard 的 API 部分中创建。

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