From acarmona at redhat.com Thu Sep 7 14:22:20 2017 From: acarmona at redhat.com (Andrea Carmona) Date: 7 Sep 2017 10:22:20 -0400 Subject: [feedhenry-dev] Don't Miss the Red Hat DevNation Live Session - Big Data in Action with Infinispan Message-ID: <238f571646914edb98d63923157020d2@1795> Read the online version . "Red Hat" Hi RedHat, Are you ready to attend the Red Hat DevNation live session Big Data in Action with Infinispan, presented by Galder Zamarreno? Join us today at 12 pm EST for this thirty minute session. For more information and to view the schedule, click here. We hope you join us! Regards, Andrea Carmona The Red Hat Developer Program __________________________________________________________________ [f1]Contact our sales team [f2]Manage your newsletter preferences [f3]Read our privacy policy [f4]Unsubscribe from all Red Hat email "Red Hat" and the "Shadowman" logo are trademarks or registered trademarks of Red Hat, Inc. Linux is a registered trademark of Linus Torvalds. ? 2016 Red Hat, Inc. All rights reserved. 100 East Davie Street Raleigh, NC 27601 [f5][twitter.png] [f6][facebook.png] [f7][redhat.png] References f1. http://www.redhat.com/apps/webform.html?event_type=contact_sales&eid=21 f2. https://www.redhat.com/wapps/ugc/email-subscriptions.html?elqc=241&elq=238f571646914edb98d63923157020d2 f3. http://www.redhat.com/legal/privacy_statement.html f4. https://www.redhat.com/wapps/ugc/master-unsubscribe.html?elqc=241&elq=238f571646914edb98d63923157020d2 f5. http://www.twitter.com/redhatnews f6. http://www.facebook.com/pages/Red-Hat/11218770329 f7. http://www.redhat.com/community/?sc_cid=70160000000I9TnAAK -------------- next part -------------- An HTML attachment was scrubbed... URL: From supittma at redhat.com Fri Sep 8 14:26:43 2017 From: supittma at redhat.com (Summers Pittman) Date: Fri, 8 Sep 2017 10:26:43 -0400 Subject: [feedhenry-dev] KeyCloak shared accounts with Android Message-ID: A few years ago I made this demo, but I've dusted the bit rot off and updated it for 2017. https://bluejeans.com/s/y5F5m This demo shows how a single app or library can share a login token with multiple apps in Android. In this case I've create a KeyCloak authentication provider which is shared with two demo applications. After the demo part of the video we discuss some future things that can be done to make it better and other opportunities of extended functionality on Android as well as possible implementations on other platforms (specifically Gnome, Windows, and iOS). Sources : * Provider : https://github.com/secondsun/keycloak-android-authenticator * Token Demo : https://github.com/secondsun/keycloak-account-authenticator-demo * Rest Demo : https://github.com/secondsun/authz-tests/tree/authenticator Note : The sources are a bit hardcoded for my machine. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjackman at redhat.com Fri Sep 8 15:42:19 2017 From: tjackman at redhat.com (Tom Jackman) Date: Fri, 8 Sep 2017 16:42:19 +0100 Subject: [feedhenry-dev] KeyCloak shared accounts with Android In-Reply-To: References: Message-ID: Hi Summers, Nice demo. One question, where are the tokens being stored, is it in the webview of the authenticator app or in the Android account manager? Thanks, Tom. TOM JACKMAN Red Hat Mobile TRIED. TESTED. TRUSTED. On Fri, Sep 8, 2017 at 3:26 PM, Summers Pittman wrote: > A few years ago I made this demo, but I've dusted the bit rot off and > updated it for 2017. > > https://bluejeans.com/s/y5F5m > > This demo shows how a single app or library can share a login token with > multiple apps in Android. In this case I've create a KeyCloak > authentication provider which is shared with two demo applications. > > After the demo part of the video we discuss some future things that can be > done to make it better and other opportunities of extended functionality on > Android as well as possible implementations on other platforms > (specifically Gnome, Windows, and iOS). > > Sources : > * Provider : https://github.com/secondsun/keycloak-android-authenticator > * Token Demo : https://github.com/secondsun/keycloak-account- > authenticator-demo > * Rest Demo : https://github.com/secondsun/authz-tests/tree/authenticator > > Note : The sources are a bit hardcoded for my machine. > > _______________________________________________ > feedhenry-dev mailing list > feedhenry-dev at redhat.com > https://www.redhat.com/mailman/listinfo/feedhenry-dev > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From supittma at redhat.com Fri Sep 8 15:52:28 2017 From: supittma at redhat.com (Summers Pittman) Date: Fri, 8 Sep 2017 11:52:28 -0400 Subject: [feedhenry-dev] KeyCloak shared accounts with Android In-Reply-To: References: Message-ID: On Fri, Sep 8, 2017 at 11:42 AM, Tom Jackman wrote: > Hi Summers, > > Nice demo. One question, where are the tokens being stored, is it in the > webview of the authenticator app or in the Android account manager? > > The webview is storing a session cookie. This cookie is not exposed by the app. The token is stored in the Android Account manager, but it is accessed through the KeyCloakAccountAuthenticator class. KeyCloakAccountAuthenticator loads, stores, validates, and updates data stored in the account manager. See https://github.com/secondsun/keycloak-android-authenticator/blob/master/app/src/main/java/org/keycloak/keycloakaccountprovider/KeyCloakAccountAuthenticator.java#L66 . > Thanks, > > Tom. > > TOM JACKMAN > > Red Hat Mobile > TRIED. TESTED. TRUSTED. > > > On Fri, Sep 8, 2017 at 3:26 PM, Summers Pittman > wrote: > >> A few years ago I made this demo, but I've dusted the bit rot off and >> updated it for 2017. >> >> https://bluejeans.com/s/y5F5m >> >> This demo shows how a single app or library can share a login token with >> multiple apps in Android. In this case I've create a KeyCloak >> authentication provider which is shared with two demo applications. >> >> After the demo part of the video we discuss some future things that can >> be done to make it better and other opportunities of extended functionality >> on Android as well as possible implementations on other platforms >> (specifically Gnome, Windows, and iOS). >> >> Sources : >> * Provider : https://github.com/secondsun/keycloak-android-authenticator >> * Token Demo : https://github.com/secondsun >> /keycloak-account-authenticator-demo >> * Rest Demo : https://github.com/secondsun/authz-tests/tree/authenticato >> r >> >> Note : The sources are a bit hardcoded for my machine. >> >> _______________________________________________ >> feedhenry-dev mailing list >> feedhenry-dev at redhat.com >> https://www.redhat.com/mailman/listinfo/feedhenry-dev >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vsazel at redhat.com Fri Sep 8 18:48:06 2017 From: vsazel at redhat.com (Vojtech Sazel) Date: Fri, 8 Sep 2017 20:48:06 +0200 Subject: [feedhenry-dev] New fh-sync-android initialization Message-ID: Hi, I followed up the work started by Wojciech and made decoupled Android fh-sync-android working. Changes done: 1) Network calls are not static, but done through NetworkClient is now interface, with NetworkClientImpl having implementation with OkHttp Android. 2) Dataset storage is written against FileStorage with implementation FileStorageImpl that uses internal Android storage in files (as was in old sync) 3) Client unique Id generator was added in ClientIdGenerator an ClientIdGeneratorImpl, this is needed by cloud app to properly sync (done the same way as in old sync) 4) FHSyncListener and FHSyncConfig improved, with new initialization for Android apps For Android initialization it's now needed to use Sync.init(Application application, FHSyncConfig config, String cloudUrl) method in your Application object like this: public class SyncApplication extends Application { @Override public void onCreate() { super.onCreate(); Sync.init(SyncApplication.this, (new FHSyncConfig.Builder()).useCustomSync(false).syncFrequencySeconds(10).notifyEnableAll().build(), "http://192.168.13.14:3000/sync"); } } When fh-android-sdk wrapper is written it should be still backwards compatibile with current old sync. -- VOJT?CH S?ZEL SENIOR QUALITY ENGINEER, MOBILE QE Red Hat Remote Czech Republic vsazel at redhat.com IM: vsazel -------------- next part -------------- An HTML attachment was scrubbed... URL: From vsazel at redhat.com Fri Sep 8 18:49:50 2017 From: vsazel at redhat.com (Vojtech Sazel) Date: Fri, 8 Sep 2017 20:49:50 +0200 Subject: [feedhenry-dev] New fh-sync-android initialization In-Reply-To: References: Message-ID: Sorry, I accidentally sent the mail unfinished. Follow up. On Fri, Sep 8, 2017 at 8:48 PM, Vojtech Sazel wrote: > Hi, > > I followed up the work started by Wojciech and made decoupled Android > fh-sync-android working. > > Changes done: > 1) Network calls are not static, but done through NetworkClient is now > interface, with NetworkClientImpl having implementation with OkHttp > Android. > 2) Dataset storage is written against FileStorage with implementation > FileStorageImpl that uses internal Android storage in files (as was in old > sync) > 3) Client unique Id generator was added in ClientIdGenerator an ClientIdGeneratorImpl, > this is needed by cloud app to properly sync (done the same way as in old > sync) > 4) FHSyncListener and FHSyncConfig improved, with new initialization for > Android apps > > For Android initialization it's now needed to use Sync.init(Application > application, FHSyncConfig config, String cloudUrl) method > in your Application object like this: > > public class SyncApplication extends Application { > > @Override > public void onCreate() { > super.onCreate(); > Sync.init(SyncApplication.this, (new FHSyncConfig.Builder()).useCustomSync(false).syncFrequencySeconds(10).notifyEnableAll().build(), "http://192.168.13.14:3000/sync"); > > } > } > > > When fh-android-sdk wrapper is written it should be still backwards > compatibile with current old sync. > > > -- > > VOJT?CH S?ZEL > > SENIOR QUALITY ENGINEER, MOBILE QE > > Red Hat > > > > Remote Czech Republic > > vsazel at redhat.com IM: vsazel > > -- VOJT?CH S?ZEL SENIOR QUALITY ENGINEER, MOBILE QE Red Hat Remote Czech Republic vsazel at redhat.com IM: vsazel -------------- next part -------------- An HTML attachment was scrubbed... URL: From vsazel at redhat.com Fri Sep 8 19:07:35 2017 From: vsazel at redhat.com (Vojtech Sazel) Date: Fri, 8 Sep 2017 21:07:35 +0200 Subject: [feedhenry-dev] New fh-sync-android initialization In-Reply-To: References: Message-ID: ad 4) Then you can implement your sync activity by implementing *SyncableActivity *interface where you implement onBindSyncListener() where sync listner is created and bound. Such activity doesn't need to call pauseSync() and resumeSync().It's done automatically by watching activities lifecycle. public class ListOfItemsActivity extends AppCompatActivity implements SyncableActivity { : : protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.list_of_items_activity); // Start the sync process try { FHSyncClient.getInstance().manage(DATA_ID, null, new JSONObject()); } catch (Exception e) { Log.e(TAG, e.getMessage(), e); } } : : @Override public FHSyncListener onBindSyncListener() { FHSyncListener.Builder builder=new FHSyncListener.Builder(); builder.onSyncCompleted(pMessage -> { : : }).onLocalUpdateApplied(pMessage -> { : : }); return builder.build(); } } Pull request: https://github.com/feedhenry/fh-sync-android/pull/3 You can see new initialization in modified *sync-cloud-app:* https://github.com/wojta/sync-android-app/pull/1/files There are still changes to be made and wrapper to old sync needs to be written. It also needs review of unit tests and other tasks we have in SDK team: https://issues.jboss.org/browse/FH-3855 Please feel free to comment here and to the PRs. You may want to contact me on Slack/RocketChat but I'm *not* *available* on Monday and all afternoons next week (12:00 GMT and after). Vojtech On Fri, Sep 8, 2017 at 8:49 PM, Vojtech Sazel wrote: > Sorry, I accidentally sent the mail unfinished. > Follow up. > > On Fri, Sep 8, 2017 at 8:48 PM, Vojtech Sazel wrote: > >> Hi, >> >> I followed up the work started by Wojciech and made decoupled Android >> fh-sync-android working. >> >> Changes done: >> 1) Network calls are not static, but done through NetworkClient is now >> interface, with NetworkClientImpl having implementation with OkHttp >> Android. >> 2) Dataset storage is written against FileStorage with implementation >> FileStorageImpl that uses internal Android storage in files (as was in old >> sync) >> 3) Client unique Id generator was added in ClientIdGenerator an ClientIdGeneratorImpl, >> this is needed by cloud app to properly sync (done the same way as in old >> sync) >> 4) FHSyncListener and FHSyncConfig improved, with new initialization >> for Android apps >> >> For Android initialization it's now needed to use Sync.init(Application >> application, FHSyncConfig config, String cloudUrl) method >> in your Application object like this: >> >> public class SyncApplication extends Application { >> >> @Override >> public void onCreate() { >> super.onCreate(); >> Sync.init(SyncApplication.this, (new FHSyncConfig.Builder()).useCustomSync(false).syncFrequencySeconds(10).notifyEnableAll().build(), "http://192.168.13.14:3000/sync"); >> >> } >> } >> >> >> When fh-android-sdk wrapper is written it should be still backwards >> compatibile with current old sync. >> >> >> -- >> >> VOJT?CH S?ZEL >> >> SENIOR QUALITY ENGINEER, MOBILE QE >> >> Red Hat >> >> >> >> Remote Czech Republic >> >> vsazel at redhat.com IM: vsazel >> >> > > > > -- > > VOJT?CH S?ZEL > > SENIOR QUALITY ENGINEER, MOBILE QE > > Red Hat > > > > Remote Czech Republic > > vsazel at redhat.com IM: vsazel > > -- VOJT?CH S?ZEL SENIOR QUALITY ENGINEER, MOBILE QE Red Hat Remote Czech Republic vsazel at redhat.com IM: vsazel -------------- next part -------------- An HTML attachment was scrubbed... URL: From akeating at redhat.com Fri Sep 15 09:42:51 2017 From: akeating at redhat.com (Aiden Keating) Date: Fri, 15 Sep 2017 10:42:51 +0100 Subject: [feedhenry-dev] Mobile Control Panel Demo Message-ID: 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jfrizell at redhat.com Fri Sep 15 12:29:37 2017 From: jfrizell at redhat.com (John Frizelle) Date: Fri, 15 Sep 2017 13:29:37 +0100 Subject: [feedhenry-dev] Mobile Control Panel Demo In-Reply-To: References: Message-ID: 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 * twitter:* @johnfriz* skype: *john_frizelle* mail: *jfrizell at redhat.com * On 15 September 2017 at 10:42, Aiden Keating 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logo.png Type: image/png Size: 11472 bytes Desc: not available URL: From psturc at redhat.com Fri Sep 15 13:27:01 2017 From: psturc at redhat.com (Pavel Sturc) Date: Fri, 15 Sep 2017 15:27:01 +0200 Subject: [feedhenry-dev] Mobile Control Panel Demo In-Reply-To: References: Message-ID: This is really great and funny demo, thanks for that Aiden! On Fri, Sep 15, 2017 at 2:29 PM, John Frizelle 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 * > twitter:* @johnfriz* > skype: *john_frizelle* > mail: *jfrizell at redhat.com * > > > > > On 15 September 2017 at 10:42, Aiden Keating 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 psturc at redhat.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logo.png Type: image/png Size: 11472 bytes Desc: not available URL: From eshortis at redhat.com Fri Sep 15 19:06:36 2017 From: eshortis at redhat.com (Evan Shortiss) Date: Fri, 15 Sep 2017 12:06:36 -0700 Subject: [feedhenry-dev] Mobile Control Panel Demo In-Reply-To: References: Message-ID: 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? 2. 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. 3. Do we provide a mobile-esque wrapper for the Keycloak SDK or just recommend using the standard keycloak libs? On Fri, Sep 15, 2017 at 6:27 AM, Pavel Sturc wrote: > This is really great and funny demo, thanks for that Aiden! > > On Fri, Sep 15, 2017 at 2:29 PM, John Frizelle > 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 * >> twitter:* @johnfriz* >> skype: *john_frizelle* >> mail: *jfrizell at redhat.com * >> >> >> >> >> On 15 September 2017 at 10:42, Aiden Keating 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 > > > psturc at redhat.com > > -- EVAN SHORTISS MOBILE PRACTICE ARCHITECT, RED HAT MOBILE Los Angeles, USA evan.shortiss at redhat.com M: +1-781-354-2834 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logo.png Type: image/png Size: 11472 bytes Desc: not available URL: From davmarti at redhat.com Sat Sep 16 12:02:52 2017 From: davmarti at redhat.com (David Martin) Date: Sat, 16 Sep 2017 13:02:52 +0100 Subject: [feedhenry-dev] Mobile Control Panel Demo In-Reply-To: References: Message-ID: Hey Evan, a few responses inline. On 15 September 2017 at 20:06, Evan Shortiss 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 wrote: > >> This is really great and funny demo, thanks for that Aiden! >> >> On Fri, Sep 15, 2017 at 2:29 PM, John Frizelle >> 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 * >>> twitter:* @johnfriz* >>> skype: *john_frizelle* >>> mail: *jfrizell at redhat.com * >>> >>> >>> >>> >>> On 15 September 2017 at 10:42, Aiden Keating >>> 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 >> >> >> psturc at redhat.com >> >> > > > > -- > > EVAN SHORTISS > > MOBILE PRACTICE ARCHITECT, RED HAT MOBILE > > Los Angeles, USA > > evan.shortiss at redhat.com M: +1-781-354-2834 > > -- David Martin Red Hat Mobile Twitter: @irldavem IRC: @irldavem (feedhenry, mobile-internal) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logo.png Type: image/png Size: 11472 bytes Desc: not available URL: From craig.robinson at redhat.com Mon Sep 18 05:10:56 2017 From: craig.robinson at redhat.com (Craig Robinson) Date: Mon, 18 Sep 2017 15:10:56 +1000 Subject: [feedhenry-dev] Mobile Control Panel Demo In-Reply-To: References: Message-ID: 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 193 North Quay, BRISBANE, QLD, Australia craig.robinson at redhat.com M: +61-431-913-345 IM: crarobin TZ: UTC+10 On 16 September 2017 at 22:02, David Martin wrote: > Hey Evan, > > a few responses inline. > > On 15 September 2017 at 20:06, Evan Shortiss 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 wrote: >> >>> This is really great and funny demo, thanks for that Aiden! >>> >>> On Fri, Sep 15, 2017 at 2:29 PM, John Frizelle >>> 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 * >>>> twitter:* @johnfriz* >>>> skype: *john_frizelle* >>>> mail: *jfrizell at redhat.com * >>>> >>>> >>>> >>>> >>>> On 15 September 2017 at 10:42, Aiden Keating >>>> 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 >>> >>> >>> psturc at redhat.com >>> >>> >> >> >> >> -- >> >> EVAN SHORTISS >> >> MOBILE PRACTICE ARCHITECT, RED HAT MOBILE >> >> Los Angeles, USA >> >> evan.shortiss at redhat.com M: +1-781-354-2834 >> >> > > > > -- > David Martin > Red Hat Mobile > Twitter: @irldavem > IRC: @irldavem (feedhenry, mobile-internal) > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logo.png Type: image/png Size: 11472 bytes Desc: not available URL: From dffrench at redhat.com Mon Sep 18 14:00:49 2017 From: dffrench at redhat.com (David Ffrench) Date: Mon, 18 Sep 2017 15:00:49 +0100 Subject: [feedhenry-dev] Mobile Control Panel Demo In-Reply-To: References: Message-ID: 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 Communications House, Cork Road Waterford, Ireland dffrench at redhat.com On Mon, Sep 18, 2017 at 6:10 AM, Craig Robinson 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 > > 193 North Quay, BRISBANE, QLD, Australia > > craig.robinson at redhat.com M: +61-431-913-345 IM: crarobin TZ: > UTC+10 > > > > On 16 September 2017 at 22:02, David Martin wrote: > >> Hey Evan, >> >> a few responses inline. >> >> On 15 September 2017 at 20:06, Evan Shortiss 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/ >> 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 wrote: >>> >>>> This is really great and funny demo, thanks for that Aiden! >>>> >>>> On Fri, Sep 15, 2017 at 2:29 PM, John Frizelle >>>> 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 * >>>>> twitter:* @johnfriz* >>>>> skype: *john_frizelle* >>>>> mail: *jfrizell at redhat.com * >>>>> >>>>> >>>>> >>>>> >>>>> On 15 September 2017 at 10:42, Aiden Keating >>>>> 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 >>>> >>>> >>>> psturc at redhat.com >>>> >>>> >>> >>> >>> >>> -- >>> >>> EVAN SHORTISS >>> >>> MOBILE PRACTICE ARCHITECT, RED HAT MOBILE >>> >>> Los Angeles, USA >>> >>> evan.shortiss at redhat.com M: +1-781-354-2834 >>> >>> >> >> >> >> -- >> David Martin >> Red Hat Mobile >> Twitter: @irldavem >> IRC: @irldavem (feedhenry, mobile-internal) >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logo.png Type: image/png Size: 11472 bytes Desc: not available URL: From cbrookes at redhat.com Mon Sep 18 14:18:38 2017 From: cbrookes at redhat.com (Craig Brookes) Date: Mon, 18 Sep 2017 15:18:38 +0100 Subject: [feedhenry-dev] Mobile Control Panel Demo In-Reply-To: References: Message-ID: 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 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 > > Communications House, Cork Road > > Waterford, Ireland > > dffrench at redhat.com > > > > On Mon, Sep 18, 2017 at 6:10 AM, Craig Robinson > 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 >> >> 193 North Quay, BRISBANE, QLD, Australia >> >> craig.robinson at redhat.com M: +61-431-913-345 IM: crarobin TZ: >> UTC+10 >> >> >> >> On 16 September 2017 at 22:02, David Martin wrote: >> >>> Hey Evan, >>> >>> a few responses inline. >>> >>> On 15 September 2017 at 20:06, Evan Shortiss >>> 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 wrote: >>>> >>>>> This is really great and funny demo, thanks for that Aiden! >>>>> >>>>> On Fri, Sep 15, 2017 at 2:29 PM, John Frizelle >>>>> 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 * >>>>>> twitter:* @johnfriz* >>>>>> skype: *john_frizelle* >>>>>> mail: *jfrizell at redhat.com * >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> On 15 September 2017 at 10:42, Aiden Keating >>>>>> 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 >>>>> >>>>> >>>>> psturc at redhat.com >>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> >>>> EVAN SHORTISS >>>> >>>> MOBILE PRACTICE ARCHITECT, RED HAT MOBILE >>>> >>>> Los Angeles, USA >>>> >>>> evan.shortiss at redhat.com M: +1-781-354-2834 >>>> >>>> >>> >>> >>> >>> -- >>> David Martin >>> Red Hat Mobile >>> Twitter: @irldavem >>> IRC: @irldavem (feedhenry, mobile-internal) >>> >> >> > -- Craig Brookes RHMAP @maleck13 Github -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logo.png Type: image/png Size: 11472 bytes Desc: not available URL: From dffrench at redhat.com Mon Sep 18 14:23:36 2017 From: dffrench at redhat.com (David Ffrench) Date: Mon, 18 Sep 2017 15:23:36 +0100 Subject: [feedhenry-dev] Mobile Control Panel Demo In-Reply-To: References: Message-ID: Excellent, thanks for the answers Craig. DAVID FFRENCH senior software engineer, RED HAT MOBILE Red Hat Waterford Communications House, Cork Road Waterford, Ireland dffrench at redhat.com On Mon, Sep 18, 2017 at 3:18 PM, Craig Brookes 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 > 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 >> >> Communications House, Cork Road >> >> Waterford, Ireland >> >> dffrench at redhat.com >> >> >> >> 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 >>> >>> 193 North Quay, BRISBANE, QLD, Australia >>> >>> craig.robinson at redhat.com M: +61-431-913-345 IM: crarobin TZ: >>> UTC+10 >>> >>> >>> >>> On 16 September 2017 at 22:02, David Martin wrote: >>> >>>> Hey Evan, >>>> >>>> a few responses inline. >>>> >>>> On 15 September 2017 at 20:06, Evan Shortiss >>>> 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 >>>>> wrote: >>>>> >>>>>> This is really great and funny demo, thanks for that Aiden! >>>>>> >>>>>> On Fri, Sep 15, 2017 at 2:29 PM, John Frizelle >>>>>> 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 * >>>>>>> twitter:* @johnfriz* >>>>>>> skype: *john_frizelle* >>>>>>> mail: *jfrizell at redhat.com * >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On 15 September 2017 at 10:42, Aiden Keating >>>>>>> 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 >>>>>> >>>>>> >>>>>> psturc at redhat.com >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> EVAN SHORTISS >>>>> >>>>> MOBILE PRACTICE ARCHITECT, RED HAT MOBILE >>>>> >>>>> Los Angeles, USA >>>>> >>>>> evan.shortiss at redhat.com M: +1-781-354-2834 >>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> David Martin >>>> Red Hat Mobile >>>> Twitter: @irldavem >>>> IRC: @irldavem (feedhenry, mobile-internal) >>>> >>> >>> >> > > > -- > Craig Brookes > RHMAP > @maleck13 Github > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logo.png Type: image/png Size: 11472 bytes Desc: not available URL: From eshortis at redhat.com Mon Sep 18 22:45:56 2017 From: eshortis at redhat.com (Evan Shortiss) Date: Mon, 18 Sep 2017 15:45:56 -0700 Subject: [feedhenry-dev] Mobile Control Panel Demo In-Reply-To: References: Message-ID: 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 wrote: > Excellent, thanks for the answers Craig. > > DAVID FFRENCH > > senior software engineer, RED HAT MOBILE > > Red Hat Waterford > > Communications House, Cork Road > > Waterford, Ireland > > dffrench at redhat.com > > > > On Mon, Sep 18, 2017 at 3:18 PM, Craig Brookes > 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 >> 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 >>> >>> Communications House, Cork Road >>> >>> Waterford, Ireland >>> >>> dffrench at redhat.com >>> >>> >>> >>> 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 >>>> >>>> 193 North Quay, BRISBANE, QLD, Australia >>>> >>>> craig.robinson at redhat.com M: +61-431-913-345 IM: crarobin TZ: >>>> UTC+10 >>>> >>>> >>>> >>>> On 16 September 2017 at 22:02, David Martin >>>> wrote: >>>> >>>>> Hey Evan, >>>>> >>>>> a few responses inline. >>>>> >>>>> On 15 September 2017 at 20:06, Evan Shortiss >>>>> 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 >>>>>> wrote: >>>>>> >>>>>>> This is really great and funny demo, thanks for that Aiden! >>>>>>> >>>>>>> On Fri, Sep 15, 2017 at 2:29 PM, John Frizelle >>>>>>> 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 * >>>>>>>> twitter:* @johnfriz* >>>>>>>> skype: *john_frizelle* >>>>>>>> mail: *jfrizell at redhat.com * >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On 15 September 2017 at 10:42, Aiden Keating >>>>>>>> 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 >>>>>>> >>>>>>> >>>>>>> psturc at redhat.com >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> >>>>>> EVAN SHORTISS >>>>>> >>>>>> MOBILE PRACTICE ARCHITECT, RED HAT MOBILE >>>>>> >>>>>> Los Angeles, USA >>>>>> >>>>>> evan.shortiss at redhat.com M: +1-781-354-2834 >>>>>> >>>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logo.png Type: image/png Size: 11472 bytes Desc: not available URL: From lfitzger at redhat.com Tue Sep 19 09:44:41 2017 From: lfitzger at redhat.com (Laura Fitzgerald) Date: Tue, 19 Sep 2017 10:44:41 +0100 Subject: [feedhenry-dev] Mobile Control Panel Demo In-Reply-To: References: Message-ID: Great demo Aiden, well done to all involved in the MCP. In relation to the cli tool, is it an option/would it be beneficial to integrate the functionality offered by the mcp cli upstream to OpenShifts cli tool (oc) rather than having a separate tool for mobile? On Mon, Sep 18, 2017 at 11:45 PM, Evan Shortiss wrote: > 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 > wrote: > >> Excellent, thanks for the answers Craig. >> >> DAVID FFRENCH >> >> senior software engineer, RED HAT MOBILE >> >> Red Hat Waterford >> >> Communications House, Cork Road >> >> Waterford, Ireland >> >> dffrench at redhat.com >> >> >> >> On Mon, Sep 18, 2017 at 3:18 PM, Craig Brookes >> 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 >>> 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 >>>> >>>> Communications House, Cork Road >>>> >>>> Waterford, Ireland >>>> >>>> dffrench at redhat.com >>>> >>>> >>>> >>>> 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 >>>>> >>>>> 193 North Quay, BRISBANE, QLD, Australia >>>>> >>>>> craig.robinson at redhat.com M: +61-431-913-345 IM: crarobin >>>>> TZ: UTC+10 >>>>> >>>>> >>>>> >>>>> On 16 September 2017 at 22:02, David Martin >>>>> wrote: >>>>> >>>>>> Hey Evan, >>>>>> >>>>>> a few responses inline. >>>>>> >>>>>> On 15 September 2017 at 20:06, Evan Shortiss >>>>>> 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 >>>>>>> wrote: >>>>>>> >>>>>>>> This is really great and funny demo, thanks for that Aiden! >>>>>>>> >>>>>>>> On Fri, Sep 15, 2017 at 2:29 PM, John Frizelle >>>>>>> > 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 * >>>>>>>>> twitter:* @johnfriz* >>>>>>>>> skype: *john_frizelle* >>>>>>>>> mail: *jfrizell at redhat.com * >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> On 15 September 2017 at 10:42, Aiden Keating >>>>>>>>> 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 >>>>>>>> >>>>>>>> >>>>>>>> psturc at redhat.com >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> >>>>>>> EVAN SHORTISS >>>>>>> >>>>>>> MOBILE PRACTICE ARCHITECT, RED HAT MOBILE >>>>>>> >>>>>>> Los Angeles, USA >>>>>>> >>>>>>> evan.shortiss at redhat.com M: +1-781-354-2834 >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> 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 > > -- LAURA FITZGERALD Red Hat Mobile Communications House, Cork Road Waterford City, Ireland X91NY33 lfitzger at redhat.com IM: lfitzgerald -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logo.png Type: image/png Size: 11472 bytes Desc: not available URL: From cbrookes at redhat.com Tue Sep 19 09:59:52 2017 From: cbrookes at redhat.com (Craig Brookes) Date: Tue, 19 Sep 2017 10:59:52 +0100 Subject: [feedhenry-dev] Mobile Control Panel Demo In-Reply-To: References: Message-ID: > > In relation to the cli tool, is it an option/would it be beneficial to > integrate the functionality offered by the mcp cli upstream to OpenShifts > cli tool (oc) rather than having a separate tool for mobile? Currently the cli is in a very early stage. I don't see it being integrated into oc currently. As an aside, early on in PoC we tried out creating a kubernetes based API server that would allow using the oc cli for the mobile actions if it was deployed. We are not currently following that approach, due to concerns with it needing to be installed at the cluster level, and because it would require a number of permissions to be granted to the server that only a cluster admin can give. The approach also raised questions around how it would work in OpenShift online and OpenShift dedicated. Currently we are pursing an approach where the UI is installed at a cluster level (no need to manage the ui once it is installed) but the server is deployed to each namespace and integrates tightly with the Kubernetes API to store data and manage secrets etc. On Tue, Sep 19, 2017 at 10:44 AM, Laura Fitzgerald wrote: > Great demo Aiden, well done to all involved in the MCP. > > In relation to the cli tool, is it an option/would it be beneficial to > integrate the functionality offered by the mcp cli upstream to OpenShifts > cli tool (oc) rather than having a separate tool for mobile? > > On Mon, Sep 18, 2017 at 11:45 PM, Evan Shortiss > wrote: > >> 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 >> wrote: >> >>> Excellent, thanks for the answers Craig. >>> >>> DAVID FFRENCH >>> >>> senior software engineer, RED HAT MOBILE >>> >>> Red Hat Waterford >>> >>> Communications House, Cork Road >>> >>> Waterford, Ireland >>> >>> dffrench at redhat.com >>> >>> >>> >>> On Mon, Sep 18, 2017 at 3:18 PM, Craig Brookes >>> 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 >>>> 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 >>>>> >>>>> Communications House, Cork Road >>>>> >>>>> Waterford, Ireland >>>>> >>>>> dffrench at redhat.com >>>>> >>>>> >>>>> >>>>> 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 >>>>>> >>>>>> 193 North Quay, BRISBANE, QLD, Australia >>>>>> >>>>>> craig.robinson at redhat.com M: +61-431-913-345 IM: crarobin >>>>>> TZ: UTC+10 >>>>>> >>>>>> >>>>>> >>>>>> On 16 September 2017 at 22:02, David Martin >>>>>> wrote: >>>>>> >>>>>>> Hey Evan, >>>>>>> >>>>>>> a few responses inline. >>>>>>> >>>>>>> On 15 September 2017 at 20:06, Evan Shortiss >>>>>>> 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 >>>>>>>> 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 * >>>>>>>>>> twitter:* @johnfriz* >>>>>>>>>> skype: *john_frizelle* >>>>>>>>>> mail: *jfrizell at redhat.com * >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> On 15 September 2017 at 10:42, Aiden Keating >>>>>>>>> > 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=0B4ybL3AxKNXxc3JveVNvRk >>>>>>>>>>> 1fZWc >>>>>>>>>>> [4] https://drive.google.com/open?id=0B4ybL3AxKNXxVlVOVzlOdE >>>>>>>>>>> RfcFk >>>>>>>>>>> >>>>>>>>>>> Thanks, >>>>>>>>>>> Aiden >>>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> -- >>>>>>>>> Regards, >>>>>>>>> >>>>>>>>> PAVEL STURC >>>>>>>>> >>>>>>>>> QUALITY ENGINEER >>>>>>>>> >>>>>>>>> Red Hat Mobile Application Platform >>>>>>>>> >>>>>>>>> >>>>>>>>> psturc at redhat.com >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> -- >>>>>>>> >>>>>>>> EVAN SHORTISS >>>>>>>> >>>>>>>> MOBILE PRACTICE ARCHITECT, RED HAT MOBILE >>>>>>>> >>>>>>>> Los Angeles, USA >>>>>>>> >>>>>>>> evan.shortiss at redhat.com M: +1-781-354-2834 >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> -- >>>>>>> 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 >> >> > > > > -- > > LAURA FITZGERALD > > Red Hat Mobile > > Communications House, Cork Road > > Waterford City, Ireland X91NY33 > > lfitzger at redhat.com IM: lfitzgerald > > > -- Craig Brookes RHMAP @maleck13 Github -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: logo.png Type: image/png Size: 11472 bytes Desc: not available URL: From acarmona at redhat.com Wed Sep 20 15:09:50 2017 From: acarmona at redhat.com (Andrea Carmona) Date: 20 Sep 2017 11:09:50 -0400 Subject: [feedhenry-dev] Upcoming Red Hat DevNation Live Tech Talk: Reactive Programming and Why it Matters Message-ID: <4eae1659e9b74a1c8bce5ead97fde7a2@1795> Read the online version . "Red Hat" Hi RedHat, Join the Red Hat DevNation for an upcoming live session on September 21, 2017, as Clement Escoffier presents on all things Reactive. This session helps you understand what's behind the 'reactive' word. It explores the reactive landscape and explains what all these 'things' are and how they are related. Attendees don't only learn what does 'reactive' mean, but also how it is related to their projects and applications. Reactive Programming, Reactive eXtensions, Reactive Streams, Reactive Systems, Reactive Manifesto, that?s a lot of 'reactive' things. Just to make it even more confusing, 'reactive' is often associated with asynchronous, scalability, RX libraries (RX Java, RX JS), back pressure, streams, observables, futures, promises, spreadsheets and so on?. That's a lot to digest. By providing a global overview of the reactive landscape, this session also provides to the attendees a general understanding of the 'reactive' trend, and why it matters. The presentation uses several coding demos to explain the different concepts. It uses Eclipse Vert.x as a playground to explain how all these concepts work together. Eclipse Vert.x is a toolkit to build reactive and distributed systems on the JVM. It supports a set of languages such as Java, JavaScript, Ceylon, Scala and Kotlin? but also a set of programming styles (callbacks, futures, streams, RX...). It covers a large part of the reactive spectrum making it a great choice to implement reactive applications and systems. Register Now For more information and to view the schedule, click here . We hope you join us! Regards, Andrea Carmona The Red Hat Developer Program __________________________________________________________________ [f1]Contact our sales team [f2]Manage your newsletter preferences [f3]Read our privacy policy [f4]Unsubscribe from all Red Hat email "Red Hat" and the "Shadowman" logo are trademarks or registered trademarks of Red Hat, Inc. Linux is a registered trademark of Linus Torvalds. ? 2016 Red Hat, Inc. All rights reserved. 100 East Davie Street Raleigh, NC 27601 [f5][twitter.png] [f6][facebook.png] [f7][redhat.png] References f1. http://www.redhat.com/apps/webform.html?event_type=contact_sales&eid=21 f2. https://www.redhat.com/wapps/ugc/email-subscriptions.html?elqc=241&elq=4eae1659e9b74a1c8bce5ead97fde7a2 f3. http://www.redhat.com/legal/privacy_statement.html f4. https://www.redhat.com/wapps/ugc/master-unsubscribe.html?elqc=241&elq=4eae1659e9b74a1c8bce5ead97fde7a2 f5. http://www.twitter.com/redhatnews f6. http://www.facebook.com/pages/Red-Hat/11218770329 f7. http://www.redhat.com/community/?sc_cid=70160000000I9TnAAK -------------- next part -------------- An HTML attachment was scrubbed... URL: From vsazel at redhat.com Mon Sep 25 13:02:59 2017 From: vsazel at redhat.com (Vojtech Sazel) Date: Mon, 25 Sep 2017 15:02:59 +0200 Subject: [feedhenry-dev] New fh-sync-android initialization - Episode: Sync Service Message-ID: Hi, thanks for your recommendations on the pull request https://github.com/ feedhenry/fh-sync-android/pull/3 I created Android Service to handle the Sync. Old static code in Sync.java was removed and my attempts with SyncableActivity as well. 1) So now initialization in activity goes like this: @Overrideprotected void onCreate(Bundle savedInstanceState) { //: //: //binding of the service serviceConnection = FHSyncService.bindService(this, syncService - > { Log.d(TAG, "activity connected to service "); syncService.setConfig((new FHSyncConfig.Builder()).useCustomSync(false).syncFrequencySeconds(10).notifyEnableAll().build()); syncService.setCloudUrl("http://192.168.233.1:3000/sync"); syncService.manage(DATA_ID, null, new JSONObject()); });} 2) For safe calling on service after initialization, you can then use call() method somewhere: serviceConnection.call(syncService -> { FHSyncListener.Builder builder = new FHSyncListener.Builder(); builder.onSyncCompleted(msg -> { //........... }); syncListener = builder.build(); syncService.registerListener(syncListener); }); 3) And unbind onDestroy(): @Overrideprotected void onDestroy() { //<<--- sync listener unregistration would go here unbindService(serviceConnection); super.onDestroy();} 4) Sync service needs to be added to AndroidManifest.xml Changes are still in PR here, please review: https://github.com/ feedhenry/fh-sync-android/pull/3 Modified sync-android-app Activity with new initialization: https://github.com/wojta/sync-android-app/blob/6d47e97cd6518ea910f030ae44555fa6dbc74f74/app/src/main/java/com/feedhenry/sync/activities/ListOfItemsActivity.java github: https://github.com/wojta/sync-android-app/tree/sdk-improvements -- VOJT?CH S?ZEL SENIOR QUALITY ENGINEER, MOBILE QE Red Hat Remote Czech Republic vsazel at redhat.com IM: vsazel -------------- next part -------------- An HTML attachment was scrubbed... URL: