Why do I get an 404 Invalid redirect_uri when using my own App?