Login with Amazon Connector

I'm looking to create a connector that uses "Login with Amazon" for OAuth2 authentication.

 

In order to get Amazon to accept the request to the Authorization URL you need to register a Return URL with Amazon. This is the URL that is passed as redirect_uri in the Authorization URL.

The problem is that the connector makes a request with

redirect_uri=https%3A%2F%2Fapi.domo.com%2Fbuilder%2Foauth.html

When you provide the Return URL to Amazon they validate that the URL is in the form of https://returnurl.com. So, you can't put https%3A%2F%2Fapi.domo.com%2Fbuilder%2Foauth.html in there.

If I replace the above in the url with

redirect_url=https://api.domo.com/builder/oauth.html

then it works.

I understand that the first one is url encoded and I understand why.

I know that there are connectors using Login with Amazon. So, I'm wondering what the magic is.

Comments