<h1>OAuth Test Client</h1>
<p>Note: we don't store any of the information you type in.</p>
<?php 
if ($authorized) {
    $redirect_uri = Oauth::parse_query($query, 'redirect_uri');
    ?>
do you want to let the <strong><?php 
    echo $redirect_uri;
    ?>
</strong> to access your information?
    <br /><br /><a href="<?php 
    echo Oauth::grant_access_uri('http://docs/oauth/authorize');
    ?>
" title="">Approve access</a>
    <a href="<?php 
    echo Oauth::access_denied_uri();
    ?>
" title="">Deny access</a><?php 
} else {
    ?>
<form method="POST" name="oauth_client">
    <input type="hidden" name="oauth_consumer_key" value="<?php 
    echo $oauth_consumer_key;
    ?>
" />
    <input type="hidden" name="oauth_token" value="<?php 
    echo $oauth_token;
    ?>
" />
    <input type="hidden" name="oauth_token_secret" value="<?php 
    echo $oauth_token_secret;