cancel
Showing results for 
Search instead for 
Did you mean: 

authentication problem

SOLVED
Occasional Visitor

authentication problem

when I post the following url into restclient

 

https://api.constantcontact.com/ws/customers/USERNAME/contacts?access_token=MYTOKEN

 

(with USERNAME replaced with my username, and MYTOKEN replaced with the "consumer secret" I got from the "api keys" link on this site), I get the following error:

 

WWW-Authenticate: Bearer error='invalid_token',error_description='Invalid token: [token removed for message post]',specificCause='org.springframework.security.oauth.provider.token.InvalidOAuthTokenException: Invalid token: [token removed for message post]',

 

Any clue as to what's going wrong?

2 REPLIES 2
CTCT Employee

Re: authentication problem

Hi SamH882,

 

The consumer secret is different than the access token.  You use the secret and API Key to obtain a token.

For additional information, please read this link: http://community.constantcontact.com/t5/Documentation/Authentication-using-OAuth-2-0-Server-and-Clie...

 

Thanks,

Andrew Weber
Associate Product Manager for EventSpot
Occasional Visitor

Re: authentication problem

That would explain it.  Thanks alot.