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.

Issue with OAUTH2 authentication

Highlighted
Senior Member

Issue with OAUTH2 authentication

Greetings,

 

Working on getting the Oauth2 authorization going, and have run into a puzzling issue.  In our code, we allow the user to click a button to authorize access to their Constant Contact account, and the first part works fine.  

 

1. You can click the button and get sent to the Constant Contact authorization page.  

2. After signing in, the options to grant or deny access display properly, with the right API Key name

3. After clicking"Grant access" we get a request back with the code

 

All is well through that point, but then when we turn around and send the request to get a token back, we get an error like this: 

{
  "error": "invalid_grant",
  "error_description": "Invalid verification code: [[the code we got in step 3 above]]"
}

To get the token, we're issuing a get request like this: 

 

https://oauth2.constantcontact.com/oauth2/oauth/token?client_id=OUR_API_KEY&redirect_uri=OUR_REDIREC...

 

Any thoughts on what might be causing this?

 

Thanks!

Nick

 

 

 

 

2 REPLIES 2
Highlighted
Occasional Visitor

Re: Issue with OAUTH2 authentication

OK - nevermind.  This was an issue on our end, which we've resolved. 

Highlighted
Employee

Re: Issue with OAUTH2 authentication

Hi,

 

Thank you for the update.  Have a great day.

 

Best Regards,

Shannon W.

API Support Specialist

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