I have a mobile app (html5 cordova) that talks to a Apigee 127 api layer (as of now hosted on Apigee Edge). The a127 app front ends a backend OAuth server that responds with an Access token.
As with any other OAuth flow, this token has to be passed on in the header of all the subsequent API requests. Now where do I store the token?
-
Do I store it in the mobile app? (have separate implementations for iOS and Android) OR
-
Do I store it in the a127 app? The nodesJS app is also a pass through for the other backend APIs. So when a call comes to a127, the app injects the token to the request and passes it on to the backend API.
I am leaning more towards Option 2. But wouldn’t that be akin to putting all eggs in one basket? Additionally is all this possible with a127?
@sganyo