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.
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!
API Support Engineer