process Id Token
public final static Unit 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 {@link 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
id Token
String representing the token retrieved from the PingOne server.
callback
{@link PingOnePairingObjectCallback} is triggered upon completion of the flow.