Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

OAuth: Unable to use AWS EC2 instance for Authorized redirect URIs

I am trying to use the URL of my AWS EC2 instance for my Authorized redirect URI but I am receiving an error: 'Invalid Redirect: must use a domain that is a valid top private domain 

What are my options?

This is the AWS URL I am trying to add:

0 1 1,120
1 REPLY 1

Hello @MikeAW2010,

Welcome to Google Cloud Community!

The error you posted indicates that the domain you are using for the redirect or callback URL is not recognized as a valid top private domain. Use a registered domain that you own or control and should be properly configured. 

For the url you posted, you don't own amazonaws.com. In this case, you might need to purchase your own domain.

Thanks!