Migrating OAuth tokens from one application to another

Not applicable

Within my oauth tokens are various custom variables that enable talking to the backend service.

I'm in a situation where I need to migrate those tokens (specifically the variables) from one application/client ID to another.

What are my options? I'm thinking:

1) Get all existing tokens for OldApp

2) Get the custom variables in each token

3) Create a new endpoint in the proxy called "/migrate"

4) Make a POST call with the custom variables and Basic Auth for the new app

5) Policy generates new token(s)

Seem sound?

0 1 103
1 REPLY 1

@zzz_srichardson@apigee.com

It seems sound. You may need to consider edge cases, like "token already migrated" and "token doesn't exist" and so on.

Steve Richardson may be able to provide more context.