processIdToken

public static void processIdToken(String idToken, PingOne.PingOnePairingObjectCallback callback)

Processes ID Token retrieved from the PingOne server. When using OpenID Connect, this is a mandatory post action method which should be executed after receiving an id token from the PingOne SDK server.

Sample usage:

PingOne.processIdToken(idToken, new PingOne.PingOnePairingObjectCallback() {
    @Override
    public void onComplete(@Nullable PairingObject pairingObject, @Nullable PingOneSDKError error) {
        //Will contain non-null PairingObject in case further action is required,
        //such as approving the pairing or error in case of failure.
        if (pairingObject != null){
            //parse pairing object and request user approval if needed
        }
    }
});
    

Parameters

idToken

String representing the token retrieved from the PingOne server.

callback

PingOnePairingObjectCallback is triggered upon completion of the flow.