400 Invalid redirect_uri error
I have one website working fine with the V3 API.ย I am now setting up another and getting the 400 Invalid redirect_uri error.
ย
On authorize I redirect to this URI: https://api.cc.email/v3/idfed?client_id={my_client_id}&response_type=code&redirect_uri=https://www.scarsdaleforum.com/System/constantContact/token&scope=account_read%2Baccount_update%2Bcontact_data%2Bcampaign_dataย
ย
This redirect returns 302 and comes back with a response header of Location: https://idfed.constantcontact.com/as//authorization.oauth2?pfidpadapterid=ctctOAuth2IdpAdapter&client_id={my_client_id}&redirect_uri=https://www.scarsdaleforum.com/System/constantContact/token&response_type=code&scope=account_read+account_update+contact_data+campaign_data&
ย
Notice it has a trailing &.ย Also notice that the + signs separating the scopes are not URL encoded.ย When I passed just the plus signs in the original redirect URL,ย the redirected URL returned did not have plus signs but spaces.ย Then I encoded them and the redirect URL comes back with plus signs.
ย
The browser redirects again and the above URL returns the 400 error.
ย
Any ideas of why this is failing?
ย
Thanks,
Bruce
Popular Posts:
๐ฅ Stream Queens: creating video content for online marketing
๐ What Industry Are You In? Cast Your Vote!
๐ค Top AI Tools for Small Business Owners