| What An end to end proof of concept working for an Android App (using the AeroGear SDK) calling a Serverless function/action in an OpenWhisk isntance provisioned to a local OpenShift cluster from the Service Catalog. Circulate a short demo video to the AeroGear group (aerogear@googlegroups.com). Why
- * identify any potential issues with this integration, creating the APB or SDK changes
- so feedback can be got about how much value a supported integration between the AeroGear SDK and OpenWhisk could bring
Demo Steps
- * Provision OpenWhisk from the Service Catalog to a project
- Create an 'action' in OpenWhisk using the 'wsk' CLI
- Create an Android App (Mobile Client) from the Service Catalog
- Create a binding (client binding, similar to Keycloak or UPS) from the Mobile Client to the OpenWhisk service instance (This will need to prompt for an 'auth string' so the App can use it to call actions)
- Copy the mobile-services.json from the Project Overview screen in OpenShift to the Android App code (The Android App is the current Aerogear security template, with changes on a branch for 'Serverless' integration)
- Build the App and run it on the Android Emulator
- Navigate to the 'Serverless' option in the App and trigger a call to the action in OpenWhisk
Android App Notes
- The current android template is at https://github.com/feedhenry/mobile-security-android-template. This may change or be moved to the aerogear org.
- The current template has a menu for the various integrations i.e. Auth, Push, Metrics, Self Defense checks. A new item for 'Serverless' can be added
- The UI can prompt for an action name to call, and have a 'Call Action' button. The result of the call should be displayed in the UI.
- These changes should remain on a branch i.e. not merged back to master as this is just a proof of concept
|