Any API or scripts for access token migration/import into Edge

Is there a way to migrate some long lasting or infinite lifetime OAuth 2 access tokens into Edge? Need this to move APIs from private cloud to public cloud Edge.

I can get access tokens from source system using Edge Management APIs. But there does not seem to be an API to update/add access token.

Note: https://github.com/apigeecs/apigee-migrate-tool does not seem to cover access token import/export

3 1 647
1 REPLY 1

One way is to use OAuthV2 in external auth mode and import all tokens with a script and migration proxy. Then at runtime tokens should behave like native edge tokens.

A script can be used to GET all the access tokens from a target system and do a POST to a proxy with OAuthV2 policy in external authorization mode.

For details, see third party authorization and OAuthV2 policy.

For sample implementation see edge-token-import.