Seller Central
Seller Forums

Amazon Seller Forums » Login With Amazon » Questions about Login With Amazon

Thread: can't access token in redirect URL in Python with popup set as False
This question is not answered.


Permlink Replies: 1 - Pages: 1 - Last Post: 16 Oct, 2017 2:49 PM by: Anurag S. (LWA) Threads: [ Previous | Next ]
Neal Shyam

Posts: 1
Registered: 08 Sep, 17 9:47 PM
Posted on: 08 Sep, 2017 3:09 PM  
Click to report abuse...   Click to reply to this thread Reply
Hi yall! I wanted to follow up on a previous thread.

As Roger mentioned, when you set popup = false, the returned URL contains the access token behind a hash rather than a ? query string. That's fine for JS folks -- but this is a huge impediment for Python / Flask app builders, because there is no way to get anchor string server side.

Can somebody please suggest a workaround / is there another way to do this? I'd like to support mobile(iOS) devices for my app. Thanks!
Is this a helpful question? Yes 1   No
1 Reply
Sort replies by:
Anurag S. (LWA)

Posts: 23
Registered: 16 Oct, 14 12:50 AM
Posted on: 16 Oct, 2017 2:49 PM   in response to: Neal Shyam in response to: Neal Shyam  
Click to report abuse...   Click to reply to this thread Reply
Hi,
Thanks for reaching out.
URL fragments are not sent to the server.
However you should be able to read it from the Javascript running on the page.
Let us know if you have further questions.

Regards,
Anurag
Login With Amazon
Was this reply helpful? Yes 0   No 0