回调URL在本地Auth0中不起作用 [英] Callback URL not working in Auth0, locally
问题描述
我正在尝试使用Auth0配置登录.作为初始步骤的一部分,我创建了一个应用程序,并添加了允许的回调URL和允许的注销URL.我在/login
,/login-results
,/logout
路由中没有托管页面.我只是想通过获取JWT
令牌来学习Auth0的工作原理,并在 http://jwt.io/<中对其进行测试/a>.
I am trying to configure login using Auth0. As part of the initial steps, I created an application and added Allowed Callback URLs and Allowed Logout URLs. I have no hosted pages in /login
, /login-results
, /logout
routes. I am just trying to learn working of Auth0 by getting the JWT
token and test it in http://jwt.io/.
我尝试使用Auth0中开箱即用的登录UI流程.我创建了此 doc 文件中提到的登录URL,以命中此端点>
I tried to use the login UI flow which available out of the box in Auth0. I created the login URL as mentioned in this doc to hit this endpoint
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使用我的应用程序的凭据创建的端点时,我会收到此错误.
But I am getting this error while executing the endpoint which I created using the credentials of my application with above-mentioned callback URL.
我生成的端点:
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
实际问题是什么?我是否还缺少其他配置?
What is the actual issue? Am I missing any other configurations?
推荐答案
找不到服务
Service Not Found
此错误消息表示您已将不存在的API标识符作为观众传递.检查是否在仪表板的"API"部分中创建了API.
This error message points to that you passed non existent API identifier as audience. Check that API is created in the API section of Dashboard.
这篇关于回调URL在本地Auth0中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!