keycloak-scim/examples/cordova-native
dependabot[bot] e923f4f943 Bump minimatch and cordova-ios in /examples/cordova-native
Bumps [minimatch](https://github.com/isaacs/minimatch) to 3.1.2 and updates ancestor dependency [cordova-ios](https://github.com/apache/cordova-ios). These dependencies need to be updated together.


Updates `minimatch` from 3.0.4 to 3.1.2
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2)

Updates `cordova-ios` from 4.5.5 to 6.2.0
- [Release notes](https://github.com/apache/cordova-ios/releases)
- [Changelog](https://github.com/apache/cordova-ios/blob/master/RELEASENOTES.md)
- [Commits](https://github.com/apache/cordova-ios/compare/4.5.5...6.2.0)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
- dependency-name: cordova-ios
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-11-30 13:45:18 -03:00
..
www KEYCLOAK-15113: Move away from deprecated Promise.success()/error() 2020-09-01 14:26:44 -04:00
.gitignore KEYCLOAK-2606: add support for native browsers on cordova 2018-07-18 10:51:59 +02:00
config.xml KEYCLOAK-2606: add support for native browsers on cordova 2018-07-18 10:51:59 +02:00
example-realm.json KEYCLOAK-2606: add support for native browsers on cordova 2018-07-18 10:51:59 +02:00
package-lock.json Bump minimatch and cordova-ios in /examples/cordova-native 2022-11-30 13:45:18 -03:00
package.json Bump minimatch and cordova-ios in /examples/cordova-native 2022-11-30 13:45:18 -03:00
README.md Fix minor typos in examples (#13155) 2022-08-05 09:00:11 -03:00

Basic Cordova Example

Before running this example you need to have Cordova installed with a phone or emulator available.

Start and configure Keycloak

Start Keycloak bound to an IP address available to the phone or emulator. For example:

bin/standalone.sh -b 192.168.0.10

Open the Keycloak admin console, click on Add Realm, click on 'Choose a JSON file', select example-realm.json and click Upload.

Navigate to applications, click on 'Cordova', select 'Installation' and in the 'Format option' drop-down select 'keycloak.json'. Download this file to the www folder.

Download '/js/keycloak.js' from the server to the www folder as well. For example:

wget http://192.168.0.10:8080/auth/js/keycloak.js

Install to Android phone or emulator

cordova platform add android
cordova run android

Once the application is opened you can log in with username: 'user', and password: 'password'.

Troubleshooting

  • You always need to initialize keycloak after the 'deviceready' event. Otherwise Cordova mode won't be enabled for keycloak.js.
  • 'http://localhost' should be listed in the allowed redirects in client configuration, but never 'file:///android_asset'.