cancel
Showing results for 
Search instead for 
Did you mean: 

localhost redirection not working

SOLVED
Highlighted
Occasional Visitor

localhost redirection not working

Hi ,

I am integrating constant contact api to my site . but auth redirection not working i first give http://localhost and dont get then i use 127.0.0.1 and changed my virtualhost setting . not working returning  "'Invalid redirect.  and Please close the window to return to your application. '"

 

Please help me to solve this.   my url is here

 

https://oauth2.constantcontact.com/oauth2/oauth/siteowner/authorize?client_id=myclientid&redirect_ur...

 

If i close that window nothing happen not redirecting to  my site . 

 

can anyone provide me a simple code to integrate costant contact

1 REPLY
Moderator

Re: localhost redirection not working

Hello,


Thank you for reaching out to Constant Contact API Support.

 

The redirect URI is used to authenticate the application with Constant Contact, so the value that you give us when making an authorization call needs to match what is stored for the application in your Mashery developer application. 

When you initially create an application, the redirect URI by default is set to http://localhost but if you wish to use http://127.0.0.1 you will need to edit your application in Mashery and update your redirect URI. Here is a link on where to go to do this: https://constantcontact.mashery.com/apps/myapps

 

Please let me know if you have any other questions!

 

Sincerely,
David B.
Tier II API Support Engineer

Still need help?
You can post a new message in the Community or find us on Twitter Mon-Fri 8am - 8pm ET. We've got real people waiting to help you out. Click below to start a conversation!