[feedhenry-dev] Mobile Control Panel Demo
Craig Robinson
craig.robinson at redhat.com
Mon Sep 18 05:10:56 UTC 2017
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/
> aidenkeating/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/master/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)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/feedhenry-dev/attachments/20170918/2d65db10/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/2d65db10/attachment.png>
More information about the feedhenry-dev
mailing list