sendPasswordAuthToken("identity","application","pa55w0rd"); $result = $neduAuthentication->validatePasswordAuthToken("identity","application","t0K3n"); if($result){ echo "The Identity has been authenticated. Let them in."; } else { echo "The Identity has not been authenticated successfully due to an incorrect token"; } ?>