"; print ''; print ''; print '

Oauth2 Token Endpoint DynamicTest

'; $username = $_POST['username']; if (!$username) { $username = 'test.sso'; } $password = $_POST['password']; if (!$password) { $password = '550Testing'; } if (isset($_POST['run'])) { $results = array(); $valid = pingIdentityOauth2PasswordAuthentication($url, $clientID, $username, $password, $results, true); print "

Testing Provided User : $username

"; print '

JSON

'; print "{$results['HTTPResponseBody']}
"; $resultsStr = var_export($results, true); print '

PHP Decoded Results

'; print "
$resultsStr
"; $accessToken = $results['access_token']; $results = array(); $valid = pingIdentityOauth2ValidateBearer($url, $bearerClientID, $bearerSecret, $accessToken, $results, true); print "

Testing Validate Bearer : $accessToken

"; print '

JSON

'; print "{$results['HTTPResponseBody']}
"; $resultsStr = var_export($results, true); print '

PHP Decoded Results

'; print "
$resultsStr
"; } print '
'; print '
'; print "Username :
"; print "Password :
"; print ''; print '
'; print ''; print ""; ?>