Callback URL not working in Auth0, locally

此生再无相见时 提交于 2020-05-31 04:03:51

问题


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/.

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

But I am getting this error while executing the endpoint which I created using the credentials of my application with above-mentioned callback URL.

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

Endpoint which I generated:

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?


回答1:


Service Not Found

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.



来源:https://stackoverflow.com/questions/61744788/callback-url-not-working-in-auth0-locally

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!