[feedhenry-dev] Mobile Control Panel Demo

Evan Shortiss eshortis at redhat.com
Mon Sep 18 22:45:56 UTC 2017


Thanks for the answers Dave. If I had been paying attention I would have
seen the damn links!

+1 for that suggestion on making the Integration possible from a higher
level.

On Mon, Sep 18, 2017 at 7:23 AM, David Ffrench <dffrench at redhat.com> wrote:

> Excellent, thanks for the answers Craig.
>
> DAVID FFRENCH
>
> senior software engineer, RED HAT MOBILE
>
> Red Hat Waterford <https://www.redhat.com/>
>
> Communications House, Cork Road
>
> Waterford, Ireland
>
> dffrench at redhat.com
> <https://red.ht/sig>
>
>
> On Mon, Sep 18, 2017 at 3:18 PM, Craig Brookes <cbrookes at redhat.com>
> wrote:
>
>>
>>    1. When provisioning the MCP, can we provision the MCP without having
>>    to go back to the service catalogue? If that is not possible, is it
>>    possible to go directly to the MCP service in the catalogue and not have to
>>    provision a mobile service (e.g. Cordova app)?
>>    2. When integrating Keycloak to the sync server, the user needs to go
>>    into the sync server > Integrations > Mobile Service integrations and
>>    integrate Keycloak. Is it possible to make this easier by allowing drag and
>>    drop on the mobile tab?
>>    3. When the Wubba Lubba Dub Dub service is added, i may have missed
>>    it but didn’t see it being added as a mobile integration to the Cordova
>>    app. It got added automatically, is this just for demo purposes to show
>>    what is possible? What happens if there are multiple mobile apps under the
>>    project?
>>
>> 1) You will be able to go directly to the mcp modal shortly once we get
>> an upstream PR closed
>> 2) Possibly :) PRs welcome :)
>> 3) Aiden already had code ready to consume that service. For each service
>> you would need to configure your client to talk to it based on the
>> configuration returned from MCP.
>>
>> Craig
>>
>> On Mon, Sep 18, 2017 at 3:00 PM, David Ffrench <dffrench at redhat.com>
>> wrote:
>>
>>> Absolutely fantastic demo Aiden. Great content, great flow, informative
>>> and excellent dialogue throughout.
>>>
>>> A couple of questions:
>>>
>>>
>>>    1. When provisioning the MCP, can we provision the MCP without
>>>    having to go back to the service catalogue? If that is not possible, is it
>>>    possible to go directly to the MCP service in the catalogue and not have to
>>>    provision a mobile service (e.g. Cordova app)?
>>>    2. When integrating Keycloak to the sync server, the user needs to
>>>    go into the sync server > Integrations > Mobile Service integrations and
>>>    integrate Keycloak. Is it possible to make this easier by allowing drag and
>>>    drop on the mobile tab?
>>>    3. When the Wubba Lubba Dub Dub service is added, i may have missed
>>>    it but didn’t see it being added as a mobile integration to the Cordova
>>>    app. It got added automatically, is this just for demo purposes to show
>>>    what is possible? What happens if there are multiple mobile apps under the
>>>    project?
>>>
>>> Best Regards,
>>>
>>> DAVID FFRENCH
>>>
>>> senior software engineer, RED HAT MOBILE
>>>
>>> Red Hat Waterford <https://www.redhat.com/>
>>>
>>> Communications House, Cork Road
>>>
>>> Waterford, Ireland
>>>
>>> dffrench at redhat.com
>>> <https://red.ht/sig>
>>>
>>>
>>> On Mon, Sep 18, 2017 at 6:10 AM, Craig Robinson <
>>> craig.robinson at redhat.com> wrote:
>>>
>>>> Brilliant Aiden. You're a natural. 👍
>>>>
>>>>
>>>> "if you didn't write it down, it didn't happen" - Clifford Stoll
>>>>
>>>> CRAIG ROBINSON
>>>>
>>>> SENIOR CLOUD OPERATIONS ENGINEER, RED HAT MOBILE
>>>>
>>>> Red Hat QLD <https://www.redhat.com/>
>>>>
>>>> 193 North Quay, BRISBANE, QLD, Australia
>>>>
>>>> craig.robinson at redhat.com    M: +61-431-913-345    IM: crarobin    TZ:
>>>> UTC+10
>>>> <https://red.ht/sig>
>>>>
>>>>
>>>> On 16 September 2017 at 22:02, David Martin <davmarti at redhat.com>
>>>> wrote:
>>>>
>>>>> Hey Evan,
>>>>>
>>>>> a few responses inline.
>>>>>
>>>>> On 15 September 2017 at 20:06, Evan Shortiss <eshortis at redhat.com>
>>>>> wrote:
>>>>>
>>>>>> Excellent demo - mad bonus points for the Rick reference!
>>>>>>
>>>>>> Some quick questions if you don't mind?
>>>>>>
>>>>>>    1. The UI popup about write access being denied. Is there some
>>>>>>    underlying code like
>>>>>>    *sdk.service('fh-sync').userHasRole('sync_write')* that we didn't
>>>>>>    see for this?
>>>>>>
>>>>>> Looks like guard rules are defined here https://github.com/aidenk
>>>>> eating/cordova-sync-app/blob/master/src/config/viewGuardRules.ts
>>>>>
>>>>> and those rules are checked on a few of the pages
>>>>> https://github.com/aidenkeating/cordova-sync-app/blob/master
>>>>> /src/pages/account/account.ts#L68-L73
>>>>> https://github.com/aidenkeating/cordova-sync-app/blob/master
>>>>> /src/pages/home/home.ts#L63-L68
>>>>>  https://github.com/aidenkeating/cordova-sync-app/blob/maste
>>>>> r/src/pages/record/record.ts#L45-L50
>>>>>
>>>>>>
>>>>>>    1. When you mentioned sync write the request is denied if the
>>>>>>    call is made directly to the sync API. Does this mean the sync server
>>>>>>    receives the request, checks for a token, then processes it? Or, is the
>>>>>>    request stopped before it reaches the sync server? It appears to be the
>>>>>>    former, but just clarifying.
>>>>>>
>>>>>> There are 2 places I've found here in fh-sync-server where it
>>>>> protects all endpoints with middleware to check the role against the access
>>>>> token
>>>>> and check permissions for processing of pending updates
>>>>> https://github.com/feedhenry/fh-sync-server/blob/master/app.
>>>>> js#L111-L152
>>>>>
>>>>>
>>>>>>    1. Do we provide a mobile-esque wrapper for the Keycloak SDK or
>>>>>>    just recommend using the standard keycloak libs?
>>>>>>
>>>>>> Looks like there's a lightweight wrapper for the Cordova example.
>>>>> https://github.com/aidenkeating/cordova-sync-app/blob/master
>>>>> /src/services/keycloak.service.ts
>>>>>
>>>>> The server uses the keycloak-connect module.
>>>>>
>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Fri, Sep 15, 2017 at 6:27 AM, Pavel Sturc <psturc at redhat.com>
>>>>>> wrote:
>>>>>>
>>>>>>> This is really great and funny demo, thanks for that Aiden!
>>>>>>>
>>>>>>> On Fri, Sep 15, 2017 at 2:29 PM, John Frizelle <jfrizell at redhat.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Really excellent demo Aiden :-)
>>>>>>>>
>>>>>>>> This is really starting to come together nicely.
>>>>>>>>
>>>>>>>> Can you add a link to the client app source code to the You Tube
>>>>>>>> description?
>>>>>>>>
>>>>>>>> --
>>>>>>>> John Frizelle
>>>>>>>> Chief Architect, Red Hat Mobile
>>>>>>>> Consulting Engineer
>>>>>>>>
>>>>>>>> mobile: *+353 87 290 1644 <//+353872901644>*
>>>>>>>> twitter:* @johnfriz*
>>>>>>>> skype: *john_frizelle*
>>>>>>>> mail: *jfrizell at redhat.com <jfrizell at redhat.com>*
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> On 15 September 2017 at 10:42, Aiden Keating <akeating at redhat.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Hey everyone,
>>>>>>>>>
>>>>>>>>> We've recorded a demo about the work we've been doing recently on
>>>>>>>>> the Mobile Control Panel (MCP). The main focus of the demo is service
>>>>>>>>> integrations, namely integrating keycloak with a sync server in order to
>>>>>>>>> protect the server. Along with this we also show how to integrate an app
>>>>>>>>> with an external service. You can view the demo here:
>>>>>>>>>
>>>>>>>>> https://www.youtube.com/watch?v=Vekxyn4_-xY&feature=youtu.be
>>>>>>>>>
>>>>>>>>> A few afterthoughts.
>>>>>>>>>
>>>>>>>>> Both the server [1] and client [2] that were used in the demo will
>>>>>>>>> pick up on changes in available services.
>>>>>>>>>
>>>>>>>>> For example, when Keycloak is integrated with the sync server a
>>>>>>>>> file is created on the server by the MCP. The server checks whether this
>>>>>>>>> file exists and will configure Keycloak based on the files contents. If the
>>>>>>>>> file does not exist the server will not use Keycloak. This is why the
>>>>>>>>> server code did not need to be changed when the Keycloak integration was
>>>>>>>>> made. Same with the client.
>>>>>>>>>
>>>>>>>>> There's also a bit more to the integrations screen than we can see
>>>>>>>>> in the video. Once an integration is made, for example integrating sync
>>>>>>>>> with keycloak, the Mobile Integrations tab for sync will update to tell us
>>>>>>>>> how to integrate sync and keycloak together.
>>>>>>>>>
>>>>>>>>> I've included screenshots to show how this tab looks for the sync
>>>>>>>>> server before the Keycloak integration [3] and after [4]. The code snippets
>>>>>>>>> in this tab will soon be updated to reflect a real example.
>>>>>>>>>
>>>>>>>>> [1] https://github.com/aidenkeating/cordova-sync-app
>>>>>>>>> [2] https://github.com/feedhenry/fh-sync-server
>>>>>>>>> [3] https://drive.google.com/open?id=0B4ybL3AxKNXxc3JveVNvRk1fZWc
>>>>>>>>> [4] https://drive.google.com/open?id=0B4ybL3AxKNXxVlVOVzlOdERfcFk
>>>>>>>>>
>>>>>>>>> Thanks,
>>>>>>>>> Aiden
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Regards,
>>>>>>>
>>>>>>> PAVEL STURC
>>>>>>>
>>>>>>> QUALITY ENGINEER
>>>>>>>
>>>>>>> Red Hat Mobile Application Platform
>>>>>>> <https://www.redhat.com/en/technologies/mobile/application-platform>
>>>>>>>
>>>>>>> psturc at redhat.com
>>>>>>> <https://red.ht/sig>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>>
>>>>>> EVAN SHORTISS
>>>>>>
>>>>>> MOBILE PRACTICE ARCHITECT, RED HAT MOBILE
>>>>>>
>>>>>> Los Angeles, USA
>>>>>>
>>>>>> evan.shortiss at redhat.com  M: +1-781-354-2834
>>>>>> <https://red.ht/sig>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> David Martin
>>>>> Red Hat Mobile
>>>>> Twitter: @irldavem
>>>>> IRC: @irldavem (feedhenry, mobile-internal)
>>>>>
>>>>
>>>>
>>>
>>
>>
>> --
>> Craig Brookes
>> RHMAP
>> @maleck13 Github
>>
>
>


-- 

EVAN SHORTISS

MOBILE PRACTICE ARCHITECT, RED HAT MOBILE

Los Angeles, USA

evan.shortiss at redhat.com  M: +1-781-354-2834
<https://red.ht/sig>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/feedhenry-dev/attachments/20170918/1ef56c39/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo.png
Type: image/png
Size: 11472 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/feedhenry-dev/attachments/20170918/1ef56c39/attachment.png>


More information about the feedhenry-dev mailing list