The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

Redirect URI mismatch

Highlighted
New Member

Redirect URI mismatch

Currently getting https://oauth2.constantcontact.com/oauth2/error.htm?error=redirect_uri_mismatch&error_description=In.... when attempting to use OAuth to authenticate.

 

Trying to access URL: https://oauth2.constantcontact.com/oauth2/oauth/siteowner/authorize?response_type=token&client_id=[c... id]&oauthSignup=true&redirect_uri=http%253A%252F%252Fniall.ngrok.io%252Fapi%252Fconstant_contact%252Fverify

 

Redirect URI from my admin panel in CC: http://niall.ngrok.io/api/constant_contact/verify

 

Not quite sure what I'm doing wrong here.

1 REPLY 1
Highlighted
Moderator

Re: Redirect URI mismatch

Hello,

 

Thank you for reaching out to the API Support team here at Constant Contact.

 

Your redirect URI does need to be URL encoded, but it looks like you are double encoding it. The correct encoding for the redirect URI above should be: http%3A%2F%2Fniall.ngrok.io%2Fapi%2Fconstant_contact%2Fverify

 

The url encoded value for "%" is %25. It looks like you are url encoding the redirect URI, and then url encoding it again. If you are still seeing this error after correcting this, please send an email to webservices(at)constantcontact.com and include your API key.

 

Please let me know if you have any other questions!

 

Sincerely,
David B.
API Support Engineer

 

 

Developer Portal

View API documentation, code samples, get your API key.

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured