TODO: do the same with OSv3
- have rhc installed
gem install rhc
- login to rhc
- As per cartridge README doc
$ rhc app create keycloak http://cartreflect-claytondev.rhcloud.com/github/keycloak/openshift-keycloak-cartridge
Your application 'keycloak' is now available.
URL: http://keycloak-ckrych.rhcloud.com/
SSH to: [email protected]
Git remote: ssh://[email protected]/~/git/keycloak.git/
Cloned to: /Users/corinne/keycloak
It will create an instance on you openshift account. For ex: https://keycloak-ckrych.rhcloud.com/auth
- create a first admin user:
ssh [email protected]
./add-user-keycloak.sh -u corinne
I've created corinne / password
- 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 a "Bare Project"
-
Add cloud app with import from https://github.com/corinnekrych/keycloak-cloud/tree/kc.2.3.0
NOTE: 'auth-server-url' has been changed to https://keycloak-ckrych.rhcloud.com/auth
- Add Cordova app importing from https://github.com/corinnekrych/keycloak-cordova-client/tree/kc.2.3.0
A project hellosecuredworld has been created with the correct config. You can reuse it for demo.
Note: you will have to change
auth-server-url
andrealm-public-key
to match the one from your Keycloak app.
- TODO create web app https://github.com/RHMAP-Sample-Mobile-Apps/keycloak-web-app
- Login as corinne / password
- Hover on 'Master' releam (lef hand side), Click button 'Add Realm'
- Give a name, click 'Create' button
- Go to 'Clients' menu, to create the corodova client app
- name: cordovaKeycloakDemo
- valid redirect URIs: http://localhost
- click 'save' button
- Go to 'Clients' menu, to create the cloud app to secure our end point
- name: RHMAPKeycloakDemo
- Access-Type: bearer-only
- click 'save' button TODO: we could import those settings for easy setup env as test.
- On 'Manage | Users' menu, click 'Add user' button
- username: user
- email: [email protected]
- first name: user_first_name
- last name: user_last_name
- Select 'credential' tab
- new passwor: password
- old password: password
- hit 'reset password' so that your user has an password
- run on iOS
cordova platform add ios; cordova run ios
Cordova Keycloak for iOS/Android animated gif
TODO windows...
- run on Android
cordova platform add android; cordova run android
TODO based