Upgrading Auth Connect
Upgrading from a version before 5.0? Make sure you go through the upgrading to version 5 guide before continuing with this one.
Upgrade Steps
Install the latest version
Capacitor
_10npm install @ionic-enterprise/auth@latest
In previous versions of Auth Connect, it required changes to the AndroidManifest.xml
file or your app's build.gradle
file in your Android project. This has been removed in Auth Connect 6 in favor of adding the required variables to your variables.gradle
file.
Remove the following code from your AndroidManifest.xml
file:
_11<intent-filter>_11 <data android:scheme="$AUTH_URL_SCHEME"/>_11 <action android:name="android.intent.action.VIEW"/>_11 <category android:name="android.intent.category.DEFAULT"/>_11 <category android:name="android.intent.category.BROWSABLE"/>_11</intent-filter>_11<intent-filter>_11 <action android:name="android.intent.action.SEND"/>_11 <category android:name="android.intent.category.DEFAULT"/>_11 <data android:mimeType="text/*"/>_11</intent-filter>
Remove the following code from your build.gradle
file:
_10manifestPlaceholders = [_10 'AUTH_URL_SCHEME': 'mycustomscheme' /// REMOVE SCHEME_10]
Add the following variable to your variables.gradle
file:
_10ext {_10 ..._10 AUTH_URL_SCHEME = 'mycustomscheme' /// CHANGE THIS TO YOUR CUSTOM AUTH SCHEME_10}
Cordova
_10ionic cordova plugin remove @ionic-enterprise/auth_10ionic cordova plugin add @capacitor/plugin-cordova-compat_10ionic cordova plugin add @ionic-enterprise/auth --variable AUTH_URL_SCHEME='mycustomscheme'
If you are currently building using Cordova, we recommend that you upgrade to Capacitor. Our Visual Studio Code extension makes the process simple!
Need Help Upgrading?
If you need help upgrading your application to the new version of Auth Connect, please reach out to Ionic Enterprise Support with any questions you may have.