Skip to content

Instantly share code, notes, and snippets.

View corinnekrych's full-sized avatar
🐝

corinnekrych corinnekrych

🐝
View GitHub Profile
generator-backend git:(master) ✗ ./debug.sh
Listening for transport dt_socket at address: 5005
2017-08-24 10:55:12,519 INFO [org.wildfly.swarm] (main) WFSWARM0018: Installed fraction: Logging - STABLE org.wildfly.swarm:logging:2017.3.2
2017-08-24 10:55:12,526 INFO [org.wildfly.swarm] (main) WFSWARM0018: Installed fraction: Bean Validation - STABLE org.wildfly.swarm:bean-validation:2017.3.2
2017-08-24 10:55:12,526 INFO [org.wildfly.swarm] (main) WFSWARM0018: Installed fraction: CDI Configuration - STABLE org.wildfly.swarm:cdi-config:2017.3.2
2017-08-24 10:55:12,526 INFO [org.wildfly.swarm] (main) WFSWARM0018: Installed fraction: Transactions - STABLE org.wildfly.swarm:transactions:2017.3.2
2017-08-24 10:55:12,527 INFO [org.wildfly.swarm] (main) WFSWARM0018: Installed fraction: CDI - STABLE org.wildfly.swarm:cdi:2017.3.2
2017-08-24 10:55:12,527 INFO [org.wildfly.swarm] (main) WFSWARM0018: Instal
generator-backend git:(master) ✗ ./debug.sh
Listening for transport dt_socket at address: 5005
2017-08-24 10:55:12,519 INFO [org.wildfly.swarm] (main) WFSWARM0018: Installed fraction: Logging - STABLE org.wildfly.swarm:logging:2017.3.2
2017-08-24 10:55:12,526 INFO [org.wildfly.swarm] (main) WFSWARM0018: Installed fraction: Bean Validation - STABLE org.wildfly.swarm:bean-validation:2017.3.2
2017-08-24 10:55:12,526 INFO [org.wildfly.swarm] (main) WFSWARM0018: Installed fraction: CDI Configuration - STABLE org.wildfly.swarm:cdi-config:2017.3.2
2017-08-24 10:55:12,526 INFO [org.wildfly.swarm] (main) WFSWARM0018: Installed fraction: Transactions - STABLE org.wildfly.swarm:transactions:2017.3.2
2017-08-24 10:55:12,527 INFO [org.wildfly.swarm] (main) WFSWARM0018: Installed fraction: CDI - STABLE org.wildfly.swarm:cdi:2017.3.2
2017-08-24 10:55:12,527 INFO [org.wildfly.swarm] (main) WFSWARM0018: Instal
2017-07-17 09:29:04,624 SEVERE [org.obsidiantoaster.generator.rest.ObsidianResource] (default task-28) null: java.lang.NullPointerException
at org.jboss.forge.addon.resource.ResourceFactoryImpl.getAddonRegistry(ResourceFactoryImpl.java:129)
at org.jboss.forge.addon.resource.ResourceFactoryImpl.getGenerators(ResourceFactoryImpl.java:63)
at org.jboss.forge.addon.resource.ResourceFactoryImpl.create(ResourceFactoryImpl.java:43)
at org.jboss.forge.addon.resource.ResourceFactoryImpl.create(ResourceFactoryImpl.java:78)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)
17:12:55 app | time="2017-06-21 17:12:55" level=info msg="request headers" Accept=[application/json, text/plain, */*] Accept-Encoding=[gzip, deflate, sdch, br] Accept-Language=[en-GB,en;q=0.8,en-US;q=0.6,fr;q=0.4] Authorization=[Bearer eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJiTnEtQkNPUjNldi1FNmJ1R1NhUHJVLTBTWFg4d2hoRGxtWjZnZWVua1RFIn0.eyJqdGkiOiIxYjE1M2JkNC0zY2NkLTRmNjItYWYwNS0yZjA4OTEyZmY4ZDciLCJleHAiOjE1MDA2NDk3ODAsIm5iZiI6MCwiaWF0IjoxNDk4MDU3NzgwLCJpc3MiOiJodHRwczovL3Nzby5wcm9kLXByZXZpZXcub3BlbnNoaWZ0LmlvL2F1dGgvcmVhbG1zL2ZhYnJpYzgtdGVzdCIsImF1ZCI6ImZhYnJpYzgtb25saW5lLXBsYXRmb3JtIiwic3ViIjoiYWFiMjE0ZTctMTQzOS00ZmU3LWFlZmMtY2RlZThiM2NiNDc1IiwidHlwIjoiQmVhcmVyIiwiYXpwIjoiZmFicmljOC1vbmxpbmUtcGxhdGZvcm0iLCJhdXRoX3RpbWUiOjE0OTgwNTc1NzMsInNlc3Npb25fc3RhdGUiOiIxOTUzYTJiZi04NWI5LTQxY2QtYjg4Zi1iMmQzM2Q2YjI4YWQiLCJuYW1lIjoiQ29yaW5uZSBLcnljaCIsImdpdmVuX25hbWUiOiJDb3Jpbm5lIiwiZmFtaWx5X25hbWUiOiJLcnljaCIsInByZWZlcnJlZF91c2VybmFtZSI6ImNrcnljaEByZWRoYXQuY29tIiwiZW1haWwiOiJja3J5Y2hAcmVkaGF0LmNvbSIsImFj
@corinnekrych
corinnekrych / RHSSO_RHMAP.md
Created February 21, 2017 22:51
Easily secure your mobile solutions with RHMAP and Red Hat SSO

As a mobile developer, when you deal with security, you often have to dive into the details of bloated security specifications and APIs to solve issues like Single Sign Out (SSO), social login, OAuth2 and OpenID Connect integration. You want to be able to focus more on your core business, and for that purpose you use Red Hat Mobile Application Platform (RHMAP) on OpenShift.

This presentation talks about various security issues your mobile applications and RESTful microservices will need to solve. On client side, we'll see the challenges to overcome from an hybrid app as well as a native app perspective: embedded web view versus external browser, URL schema for callback, local storage for tokens, refresh access tokens transparently...

What about if you could delegate security intricacy to security expert? Security can be easy if you have the right tools! This is exactly what Red Hat Single Sign-On (SSO) on Openshift is for. RH-SSO is an open source Identity and Access Management solution that can secure y

module.exports = function(ctx) {
var child_process = require('child_process');
var path = require('path');
var fs = require('fs');
var Q = ctx.requireCordovaModule('q');
var util = ctx.requireCordovaModule('cordova-lib/src/cordova/util');
var xcode = ctx.requireCordovaModule('xcode');
var deferral = Q.defer();
@corinnekrych
corinnekrych / keycloak_SAML_POC.md
Created December 12, 2016 09:45
keycloak_SAML_POC.md

Similar to OAuth/OpenId gist, here we will explain how to create a SAML config.

SAML - Create a realm/user/client app

Pre-requisites

  • Have a KC 2.3.0 instance running (see previous step)
  • Have a RHMAP cluster running. We use demo cluster. Ask corinne to grant access, any cluster willdo.

Create RHMAP apps

  • Create a "Bare Project"

Keycloak on OS v2

TODO: do the same with OSv3

Pre-requisites

gem install rhc
  • login to rhc

Create you KC instance

Abstract: Trials and tribulations of a polyglot and cross-platform mobile developer

Cross platform development is hard. Regardless of your experience, accept ups and downs. It’s a process of multiple failures and successes. So many choices, so little time. And what about if you bet on the wrong horse?

As a developer for the past 20 years, I have experience in iOS, Android, Windows and Hybrid mobile apps. You don’t need to look for the impossible unicorn, polyglot and cross-platform development is easier than you think. In this presentation I will share my insights and stories of the different platforms. I’ll give you concrete and practical steps to choose the right solution for your project.

~/w/f/fhcap ❯❯❯ vagrant provision master ⬆ ✱ ◼
Using :: role = dev : environment = development : ip = 192.168.33.10
Mounting NFS share :: src /Users/corinne/src/fheng => /mnt/src
==> single: Running provisioner: shell...
single: Running: inline script
==> single: Running provisioner: shell...
single: Running: /var/folders/cl/80xt717d7d1_xbm129m6t6c00000gn/T/vagrant-shell20160929-2184-1elgbul.sh
==> single: Reading package lists...
==> single: Building dependency tree...
==> single: Reading state information...