Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

How to use same client credentials in multiple organisations

Not applicable

Hi All,

I am working on Migration of client credentials from Layer 7 to Apigee.

In Apigee I have Dev and ptest organization sharing same Cassandra. When I created client credentials in Dev, I am not able to create same credentials in ptest organization. Is there anyway to use the same credentials in ptest?

Solved Solved
0 6 728
1 ACCEPTED SOLUTION

There is not a direct way, but there is a sort of hacky way, to do as you wish: use the same creds in dev as in ptest.

Suppse your keys are key1, key2, etc.

You would need to "import" keys into the various orgs, appending the org name to the root value of the key. Resulting in like key1-dev in dev, key1-ptest in ptest, etc.

Clients always use the same key but when any proxies that make use of that key (VerifyApiKey or GenerateAccessToken, etc) they must first add the suffix, via AssignMessage, relying on the "organization.name" context variable.

This works if you aren't exposing the dev apps directly to developers. If you have a devportal you might need to do the reverse on the devportal when displaying the credentials (remove the suffix).

It's sort of hacky, but it might satsify.

Outside of this I know of no other workaround, aside from: MOVE TO APIGEE CLOUD, which does not have this limitation.

🙂

View solution in original post

6 REPLIES 6