Instruction for upgrading the Onegini Android SDK to version 9.8

OpenID Connect Relying Party

The SDK is now an OpenID Connect Relying Party. During registration it can enforce the user to login with the Identity Provider.

In order to force the user login the app has to provide the openid scope within the set of scopes used for a user registration:

    final String[] scopes = new String[]{ "read", "openid" };
    OneginiClient.getInstance()
        .getUserClient()
        .registerUser(identityProvider, scopes, registrationHandler);

All mobile apps configured on the Token Server have the openid scope by default. It means that it will be also used when the app will not define the scopes and let the Token Server use default scopes:

    OneginiClient.getInstance()
        .getUserClient()
        .registerUser(identityProvider, null, registrationHandler);