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.

Getting username parameter when authenticating via oauth 2.0?

Highlighted
Occasional Contributor

Getting username parameter when authenticating via oauth 2.0?

I'm migrating an app from oauth 1.0 to 2.0. With 1.0 authentication, the customer's username is returned when authentication is complete. However, I don't see the username being returned in the oauth 2.0 process.

 

The username is required when performing API requests. I've tried accessing my events list without the username and just the accessToken, but that obviously doesn't work. =)

 

I don't see anything in the new 2.0 documentation indicating when/if the "username" parameter is being returned during this oauth 2.0 process.

 

Where/how can I get the username that the user authenticated with?

1 REPLY 1
Highlighted
Moderator

Re: Getting username parameter when authenticating via oauth 2.0?

Thanks for reporting this, there is a bug where the username is not being returned with the OAuth 2.0 authorization JSON.  Our dev team is looking into this now and we'll update this thread once we have a fix out for developers.

Dave Berard
Senior Product Manager, Constant Contact
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