The provided redirect_uri is not in the list of allowed callback URLs

I followed the guide for setting up a laravel project. But got stuck at Oops!, something went wrong as so many others.
I cannot see any other topic that has a solution to my problem.
I ran the wizard, and have ensured that the urls are correct.
The message is:
“The provided redirect_uri is not in the list of allowed callback URLs.”
Looking at what is sent in the payload I see:
redirect_uri: http://localhost/callback

I have no idea whit it does not add the port. It should, should it not?

Hey there @jarlgjessing welcome to the community!

I’m not super familiar with laravel, but I do think there should be a port number :thinking: I’m guessing that’s the issue here. Do you mind sharing the specific guide?

You answered just before I edited the question:-)
Not sure how I can share it though. But I selected new application, chose regular web application and then selected php/laravel.
The guide then asked me to do quite a bit of commands, and I always asured that the portnumber was there in the guide and that it was corrent.
I also verified the and api.json had the corrent portnumbers

1 Like

And NOW I found the sollution myself :slight_smile:
Laravel has a default application URL saying http://localhost in the .env file.
Changing that fixed it. Thanks

1 Like

Ah, great! Glad you were able to figure it out :slight_smile: Is the default .env file which omits the port number provided by the guide? If so, do you mind sharing a link to the guide so I can look into it?


Not it is not. As far as I can see there is no mention of the .env file in the guide.
And as mentioned, I cannot share the guide, since it is from within that I found the guide.

1 Like

Ok - Make sense, thanks for confirming!

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