Giter Site home page Giter Site logo

Redirect URI about alexaweb HOT 13 CLOSED

sammachin avatar sammachin commented on July 18, 2024
Redirect URI

from alexaweb.

Comments (13)

jacobajit avatar jacobajit commented on July 18, 2024

If you have everything else right, try replacing every "self.request.protocol" with "https." Heroku's routing can be weird otherwise. Then just make sure you have the appropriate URL in your whitelist for AVS.

from alexaweb.

idav-lifesuppot avatar idav-lifesuppot commented on July 18, 2024

Thanks I will give that a shot.

from alexaweb.

idav-lifesuppot avatar idav-lifesuppot commented on July 18, 2024

Made the changes to self.request.protocol to "https" but it doesn't seem to change when I deploy to heroku as a fresh app.

When I input the "s" into the wrong url it brings up Amazon login screen but then doesn't redirect out of amazon.

from alexaweb.

idav-lifesuppot avatar idav-lifesuppot commented on July 18, 2024

I confirmed that the changes are not being made when trying to publish app changes to heroku.

from alexaweb.

idav-lifesuppot avatar idav-lifesuppot commented on July 18, 2024

Is it usually the case to run http by default? I notice the examples say localhost:5000 should be https, amazon isn't allowing entering whitelist urls without https.

from alexaweb.

idav-lifesuppot avatar idav-lifesuppot commented on July 18, 2024

I appreciate the help,got passed the https issue once I found how to update the heroku app. As sugested adjusting the self.request.protocol.

Still getting the error once the amazon user logs lin. Clicking ok when in https://www.amazon.com/ap/oa, stays and doesn't redirect as specified in the beginning. Any ideas where that is coming from is appreciated.

from alexaweb.

blackshroud avatar blackshroud commented on July 18, 2024

I am getting the same issue when forking and setting up the heroku app (on heroku.com) after selecting the allow screen after logging in.

Any thoughts?

from alexaweb.

blackshroud avatar blackshroud commented on July 18, 2024

Hey idavalos, i worked out my issue (could be yours too)

I had deployed redis, but had not set the redis URL in the ceds.py file

Also, I had not update the ProductID in the app.py (this needs to be the name of your AWS app)

Hope this helps

from alexaweb.

idav-lifesuppot avatar idav-lifesuppot commented on July 18, 2024

Hello blackshroud, thanks a ton for the suggestion.

I had the redis correct I think.

Made the ProductID update in app.py and that did the trick using the Application Type Id.

from alexaweb.

blackshroud avatar blackshroud commented on July 18, 2024

Glad I could help ;)

Hey idavalos, I am having the same redirect issue you were, can you clarify where you updated the "self.request.protocol" and what you changed it to?

from alexaweb.

idav-lifesuppot avatar idav-lifesuppot commented on July 18, 2024

Changed code in app.py in two places
path = self.request.protocol + "://" + self.request.host
changed to
path = "https" + "://" + self.requested.host

However making the changes required updating the heroku app.
Ran the following on the linux server after making the changes.

sudo git add .
sudo git commit -am "make it bettter"
sudo git push heroku master

Hope that helps.

from alexaweb.

blackshroud avatar blackshroud commented on July 18, 2024

Thanks mate, that solved my issue.

Think issue I think can resolved, yeah idavalos?

from alexaweb.

idav-lifesuppot avatar idav-lifesuppot commented on July 18, 2024

Yes this issue can be closed as solved.

from alexaweb.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.