Got a 'How do I' question? Join 'Ask a Trainer' Monday to Friday, 11am to 4pm ET for instant help and pro tips!

Authorization Failing periodically.

RaviM44
Campaign Expert
0 Votes

I am using the Server flow model for OAuth2. Initially, I can get the authorization and refresh tokens. No issue so far. I have the code set to send the refresh token up every hour (I moved this back from my initial 2 hours) in order to ensure that we have a current token. To my understanding, unless my local authorization fails to trigger, I shouldn't have to interact with the authorization from then on. It should refresh, get the new authorization and refresh tokens and move along. However, the authorization fails periodically, apparently for no reason at all. I simply get back a failed authorization. Additionally, I have an authorization page set up so myself and my fellow devs can get a new authorization and refresh token in case of these failures. This will get a new access code, and then immediately fail to authorize.

Additionally, it looks like every 3 weeks or so I have had to go in and refresh the Secret Key, as the authorization fails repeatedly and no amount of new access codes/authorization codes/refresh tokens will work. My flow is as follows:

1) Get the Access code from our front-end UI, which opens a CC page and allows login. The returned code gets saved to our local DB.
2) My automated process checks for a current refresh token/authorization code.
a) if found, the service moves along.
b) if not found, the call gets made to CC to get the new authorization and refresh tokens.

Step 2b is what fails periodically. No return code message aside from "Bad authorization" or "Authorization Code invalid" comes back.

Why am I having to manually refresh this, and why would the Secret Key require a reset EVER?

EDIT:
My back-end is C# using the V3API. The front end also uses V3 API and is a vb.net web application

1 REPLY 1
Courtney_E
Moderator
0 Votes

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

 

It looks like we've already followed up with you directly via email, but I wanted to close the loop here as well. If you haven't received our reply, please let us know via email at webservices@constantcontact.com, and reference case number 28290289.


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