*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 , enter a string to be reversed and trigger a call to the action in OpenWhisk . The response from OpenWhisk will be shown in the App
* Stretch Goal*
* The OpenWhisk action implementation also calls the sender API in a running UPS instance, which sends the result of the reversed string as a push message to the Android App too. * The API key for the sender API in UPS can be manually created & copied into the OpenWhisk action for the purpose of this POC (automating the generation & inserting of the key could be a future followup task)
*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 a string to call send to the action , and have a 'Call Action' button. The result of the call should be displayed in the UI . (expected to be the reversed version of the string) * These changes should remain on a branch i.e. not merged back to master as this is just a proof of concept
*Exising work*
[~peter.braun] has already done some great work trying out the https://github.com/projectodd/openwhisk-openshift repo, and has a nice Readme for trying it out https://github.com/pb82/openwhisk-chatty/blob/master/README.md. This could be the basis of creating an APB
|
|