question

shaqspeare avatar image
shaqspeare asked

As a third party, after login can it redirect to thrid party domain

[On behalf of: Social Annex] Suppose my domain is abc.com and i am integrating amazon login on my another domain xyz.com. i created keys for xyz.com domain. Now after amazon login, i want it redirect to abc.com domain, where i can get user information. is it possible? Please help me. Thanks!
login with amazon
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

shaqspeare avatar image
shaqspeare answered
Yes, Login With Amazon supports your use case. Your setup and implementation will vary depending on how you integrate with us. If you use our JavaScript SDK in "popup" mode on xyz.com, Login With Amazon cannot automatically redirect to abc.com. However, once xyz.com receives an authorization token, it may pass that token to abc.com (e.g. via a server-to-server call or AJAX POST request), and abc.com would then be able to use that token to retrieve customer profile information. If you go this route, be sure to pass the token over a secure, encrypted channel. Also, we strongly recommend that you validate the access token on abc.com, to protect against resource owner impersonation (see the "Impersonating a Resource Owner in Implicit Flow" section of the Developer Guide for Websites, on page 26). If you are not using our SDK, or are not using it in "popup" mode, then Login With Amazon can redirect straight to abc.com. You will need to add the target redirect URL on abc.com to your application's Allowed Return URLs list (see "Add a Website to your Application" under the "Register Your Application" section of the Web Getting Started Guide).
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

shaqspeare avatar image
shaqspeare answered
[On behalf of: Social Annex] Thank you for feedback. I have one more question. I am using the "Login with Amazon" as third party. I am giving call to SDK through one javascript. is there possible to return control back to javascript function after login through amazon? So that i can get user information in that javascript function. Please guide me. Thanks!
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.