Instruction for upgrading the Onegini Android SDK to version 9.0¶
When upgrading to version 9.0 some changes have to be applied in the end application:
Fixed typo in one of OneginiClientBuilder methods¶
The OneginiClientBuilder used to have public method:
1 |
|
The method had a spelling error, there was a missing n
in Authentication
word. The issue is fixed now, the new name of the method is:
1 |
|
The functionality of the method stays the same.
CustomAuthenticatorInfo¶
The customAuthenticatorInfo
class was renamed to CustomInfo
. The object is now used to provide results of both custom authentication and custom
registration.
OneginiErrorDetails¶
The getCustomAuthenticatorInfo
method from the OneginiErrorDetails
has been renamed to getCustomInfo
.
OneginiRegistrationHandler¶
The OneginiRegistrationHandler.onSuccess()
has received and additional CustomInfo
param:
1 |
|
In a case when the user has registered using the CustomIdentityProvider, the object will contain the success status code and optional data received from the Extension Engine. Otherwise, the object will be null.
com.onegini.mobile.sdk.android.handlers.customauth¶
All public interfaces from com.onegini.mobile.sdk.android.handlers.customauth
package has been moved to com.onegini.mobile.sdk.android.handlers.action
package.
UserClient#registerUser method¶
The registerUser
method from the UserClient
takes additional param: the Identity Provider.
1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
This allows you to use the multiple Identity Providers feature. In case when you don't want to use the feature, you can pass null as the first param to let the SDK use the default IDP from the TS config.
OneginiRegistrationRequestHandler¶
The OneginiRegistrationRequestHandler
has been renamed to OneginiBrowserRegistrationRequestHandler
.
The OneginiBrowserRegistrationRequestHandler
implementation is not required anymore if the app doesn't use browser registration (i.e. when registration is
done using custom Identity Provider). Because of that the OneginiClientBuilder
doesn't require this object in the constructor anymore:
1 2 3 4 5 6 7 8 9 10 11 |
|
However, if you want to use browser registration, you should still provide the registration handler through new method of the OneginiClientBuilder
:
1 2 3 4 5 6 7 8 9 10 |
|
OneginiRegistrationCallback¶
The OneginiRegistrationCallback
has been renamed to OneginiBrowserRegistrationCallback
.