Enter the Share Your Success Sweepstakes 2024 For the Chance to Win Great Prizes!

Implicit Flow 400 Bad Request.

user2793833
Rookie
0 Votes
I am developing an application that calls your API using OAuth 2.0 Implicit Flow. From my program, it generates the following URL, then when clicked from the UI it routes to constant contact authentication server. https://authz.constantcontact.com/oauth2/default/v1/authorize?client_id=XXXX-XXX-XXX-XX-XXXXX&redire... But error shows, 400 Bad Request... it says: Your request resulted in an error. The 'redirect_uri' parameter must be a Login redirect URI in the client app settings: https://prod-ctct-admin.okta.com/admin/app/oidc_client/instance/0oa1wm5qv6nKZZLmB0h8#tab-general I am new to this, so I am not sure if my entries are correct.
2 REPLIES 2
user2793833
Rookie
0 Votes

I fixed it by making sure that the redirect_uri in the request parameter and the Redirect URI from one of the apps list (https://app.constantcontact.com/pages/dma/portal/appList) Details tab, are the same.

However, I have a another question. Let me write it in another topic.

Courtney_E
Moderator
0 Votes

Hello user2793833,

Thank you for reaching out to Constant Contact API Developer Support. My team is here to assist outside software developers with questions about building into Constant Contact's API.

The Redirect URI in your Authorization Request URL must exactly match one of the Redirect URIs specified in your key's settings. To access your key's Redirect URIs: Navigate to https://app.constantcontact.com/pages/dma/portal and click the "Edit" button to the right of the key you are using.

OAuth2 Implicit Flow
https://v3.developer.constantcontact.com/api_guide/client_flow.html

Please have a look and let us know if you have any other questions!


Regards,

Courtney E.
Tier II API Support Engineer

Did I answer your question?
If so, please mark my post as an "Accepted Solution" by clicking the Accept as Solution button in the bottom right hand corner of this post.
Resources
Developer Portal

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

Visit Page

Announcements

API Updates

Join our list to be notified of new features and updates to our V3 API.

Sign Up