Unable to use undefined as allowed callback url

Hi, I tried to follow this tutorial https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow/call-your-api-using-the-authorization-code-flow

There is step:
Add an Allowed Callback URL of undefined

And I cannot do this because validation on Auth0 dashboard is not allowing me:

How to achieve it? I wanted to get to know how Authorization Code Flow looks like programmatically. I have used it through UI and I think it is a little different than this tutorial. For example in UI I saw /login endpoint was called and also some authorize/resume endpoint was called and there is no any information about those endpoints in this tutorial, so what is the real flow for Authorization Code Flow? I also tried to use /authorize endpoint with real callback url and not undefined and endpoint worked but I cannot see authorization code in the response, why? According to docs I should see:

HTTP/1.1 302 Found
Location: undefined?code={authorizationCode}&state=xyzABC123

But in my response there is no ‘code’, there is only ‘state’.

Hi @lucask

That appears to be a display bug on the documentation. I would advise to log out and log back in if you are already authenticated on the page or log in if you are not.

Otherwise, the step actually states:

  • Add an Allowed Callback URL of {https://yourApp/callback}.

That should do the trick.

Let me know if you have any other questions.

Kind Regards,
Nik

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.