Developer Portal & Documentation


Reply
Occasional Visitor
ChadF189
Posts: 2
Registered: ‎04-08-2012

API Key for multi-user, multi-site application

I want to get an API key from my account and tie it to a wordpress plugin which can then be installed on any wordpress website.

 

The API key requires a redirectURI -- this URI is custom for every wordpress install:

 

http://mySite.com/wordpress/wp-content/plugins/mailsign/ctctResponseHandler.php

http://yourSite.com/wp-content/plugins/mailsign/ctctResponseHandler.php

 

while I could generate that url and walk my users through generating their own API key with a custom redirect URL specific to their website, this is a _mess_.  I am confident that any instruction I could provide will at best be a hassle and at worst confuse all but technically savvy users.  

 

I desire to make my plugin usable by novice users looking to add constant contact support to their website.

 

How can I setup a cross-domain API key without the need for custom-tailored redirect URIs?

Occasional Visitor
ChadF189
Posts: 2
Registered: ‎04-08-2012

Re: API Key for multi-user, multi-site application

Looks like three-legged authentication is the answer as opposed to OAuth 2.0 through the CtCt wrapper

 

I'll post again if I have more questions or find out something interesting :)

Nick_G
Posts: 160
Kudos: 11
Solutions: 9
Registered: ‎04-20-2011

Re: API Key for multi-user, multi-site application

Hey Chad,

 

Definitely let us know if you have questions. I've been working through some OAuth2 scenarios as well, and three-legged authentication does seem to be the best way to handle"novice-proofing" your OAuth2 authentication.

Nick Galbraith
Support Engineer