OAuth2 Redirect URI is invalid

I’m experimenting with Open Cloud OAuth2 and I have an issue where I cannot use my domain endpoint but I can use localhost as a Redirect URI. This is what I get when using my domain.


Everything works as I intended when I use localhost. Below I put a photo of what URI I use for the domain.

For future reference, my issue was solved.

It was beacuse of the secure protocol. Instead of HTTPS I used HTTP in the callback code, not in the app redirect URI