Migrate application from jwt to oauth

Good afternoon, sorry, I received an email to migrate from jwt to Oauth, but I can’t find documentation to make this change in ionic, at the time you will provide me with an sdk so that the calls will work in ionic, could you help me

@ronaldocuevasgarcia ,

Please note that ionic is out of support, anything provided here is best effort.

Were you using previously using the JWT token for REST API call?

Here are some things to take note

  • For the SDK authentication, you will need a Meeting SDK App
  • For REST API, you will need an OAuth or S2S OAuth App.
  • The current minimum version of SDK support is 5.12.2. The last version of ionic provided was bundled with 5.7.6

I use jwt rest api, so how can I continue creating sessions in ionic ? or can it no longer be done?

You can no longer create meetings within the SDK

  1. REST API to do things such as Create Meeting: Use OAuth App Type or Server to Server OAuth App Type
  2. SDK Authentication: Use Meeting SDK App Type, Client ID and Client Secret
  3. Minimum Version: You need to use SDK Versions 5.12.2 and above, if not it will not work.

ok I understand, I will change the sdk in my native android app, when installing the sdk 5.12.2.9109 I get the following error Unable to instantiate appComponentFactory
java.lang.ClassNotFoundException: Didn’t find class “androidx.core.app.CoreComponentFactory” on path: DexPathList[,nativeLibraryDirectories=[/data/app/com.labsteck.doctor.clinics.ocket-3GrvjwPmygk8W8jVOTbrjA==/ lib/x86, /data/app/com.labsteck.doctor.clinics.ocket-3GrvjwPmygk8W8jVOTbrjA==/base.apk!/lib/x86, /system/lib, /system/product/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:196)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.app.LoadedApk.createAppFactory(LoadedApk.java:256)
at android.app.LoadedApk.updateApplicationInfo(LoadedApk.java:370)
at android.app.ActivityThread.handleDispatchPackageBroadcast(ActivityThread.java:5951)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1941)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:214)
at com.android.server.SystemServer.run(SystemServer.java:541)
at com.android.server.SystemServer.main(SystemServer.java:349)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:908)

I attach the configuration of my graddle
plugins {
id ‘com.android.application’
}

android {
compileSdk 31
buildToolsVersion “30.0.3”

 defaultConfig {
     applicationId "com.labsteck.doctor.clinics.ocket"
     minSdkVersion 26
     targetSdkVersion 31
     versionCode 1
     versionName "1.0"

     testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
 }

 buildTypes {
     release {
         minifyEnabled false
         proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
     }
 }
 compileOptions {
     sourceCompatibility JavaVersion.VERSION_1_8
     targetCompatibility javaVersion.VERSION_1_8
 }

}

dependencies {

 implementation 'androidx.multidex:multidex:2.0.1'
 implementation 'androidx.recyclerview:recyclerview:1.0.0'

 implementation 'com.google.code.gson:gson:2.8.7'
 implementation 'androidx.appcompat:appcompat:1.3.0'
 implementation 'com.google.android.material:material:1.3.0'
 implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
 implementation 'com.github.nkzawa:socket.io-client:0.3.0'
 implementation 'com.android.volley:volley:1.1.0'
 testImplementation 'junit:junit:4.+'
 androidTestImplementation 'androidx.test.ext:junit:1.1.3'
 androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
 implementation 'com.airbnb.android:lottie:5.0.3'
 implementation project(":commonlib")
 implementation project(":mobilertc")
 implementation 'androidx.work:work-runtime-ktx:2.7.0'

}

@ronaldocuevasgarcia ,

I’m not able to help with the upgrading as we do not support ionic anymore.