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:
The method had a spelling error, there was a missing
Authentication word. The issue is fixed now, the new name of the method is:
The functionality of the method stays the same.
customAuthenticatorInfo class was renamed to
CustomInfo. The object is now used to provide results of both custom authentication and custom
getCustomAuthenticatorInfo method from the
OneginiErrorDetails has been renamed to
OneginiRegistrationHandler.onSuccess() has received and additional
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.
All public interfaces from
com.onegini.mobile.sdk.android.handlers.customauth package has been moved to
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 has been renamed to
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
1 2 3 4 5 6 7 8 9 10
OneginiRegistrationCallback has been renamed to