keycloak-scim/examples/cordova-native/config.xml
Gregor Tudan 3417b569c0 KEYCLOAK-2606: add support for native browsers on cordova
KEYCLOAK-2606 Added cordova native

KEYCLOAK-2606 Some more fixes and tweaks

Fix redirect in example realm

feature(cordova-native): fix universalLinks and kc options

Added 'cordova-native' to typings

Added an option to define a "default" redirectUri in keycloak.js

Added 'login' and 'logout' event to universalLinks configuration in config.xml

Improved 'cordova-native' example to always use a redirectUri and
update state after successfull logout

Setting the 'authenticated' flag for the keycloak instance to 'false'
after a logout redirect

KEYCLOAK-2606: Simplify example for cordova-native

I wanted to make it explicit which options are actually needed, so I didn't want to reuse the keycloak conf

KEYCLOAK-2606: simplify example

The update state after logout shouldn't be necessary as it is set in `keycloak.onAuthLogout = updateState;`
Not sure why it is called after the login promise...

Fixes
2018-07-18 10:51:59 +02:00

25 lines
1.2 KiB
XML

<?xml version='1.0' encoding='utf-8'?>
<widget id="org.keycloak.examples.cordova" version="1.0.0" xmlns="http://www.w3.org/ns/widgets" xmlns:gap="http://phonegap.com/ns/1.0">
<name>Keycloak Auth</name>
<description>Keycloak Cordova Example</description>
<author href="http://www.keycloak.org">Keycloak Team</author>
<feature name="http://api.phonegap.com/1.0/device" />
<preference name="permissions" value="none" />
<preference name="AndroidLaunchMode" value="singleInstance" />
<gap:plugin name="cordova-plugin-inappbrowser" />
<gap:plugin name="cordova-plugin-whitelist" source="npm" version="1.0.0" />
<access origin="*" />
<allow-navigation href="*" />
<allow-intent href="http://*/*" />
<allow-intent href="https://*/*" />
<preference name="AndroidLaunchMode" value="singleTask" />
<universal-links>
<host name="keycloak-cordova-example.github.io" scheme="https">
<path event="keycloak" url="/login" />
</host>
</universal-links>
<plugin name="cordova-plugin-browsertab" spec="~0.2.0" />
<plugin name="cordova-plugin-deeplinks" spec="^1.1.0" />
<engine name="ios" spec="^4.5.4" />
<engine name="android" spec="^6.4.0" />
</widget>