Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Yes, according to the <a href="http://tools.ietf.org/html/rfc5849" rel="nofollow">OAuth Specification</a>, <a href="http://tools.ietf.org/html/rfc5849#section-2.1" rel="nofollow">the request for Temporary Credentials (AKA "Request Token")</a> and <a href="http://tools.ietf.org/html/rfc5849#section-2.3" rel="nofollow">the request for Token Credentials (AKA "Access Token")</a> MUST be submitted as an HTTP <code>POST</code> request, but the PECL OAuth extension seems to persistently use <code>GET</code> for <code>getRequestToken()</code> and <code>getAccessToken()</code>... by default.</p> <p>There is <a href="http://www.php.net/manual/en/oauth.construct.php" rel="nofollow">an <code>$auth_type</code> parameter to <code>OAuth::__construct()</code></a> that accepts <a href="http://www.php.net/manual/en/oauth.constants.php" rel="nofollow">one of the following values</a>:</p> <ul> <li><code>OAUTH_AUTH_TYPE_AUTHORIZATION</code> -- Submit OAuth parameters in the HTTP <code>Authorization</code> header of the request (and use a <code>GET</code> request by default).</li> <li><code>OAUTH_AUTH_TYPE_URI</code> -- Submit OAuth parameters in the request URI (i.e. query params in a <code>GET</code> request).</li> <li><code>OAUTH_AUTH_TYPE_FORM</code> -- Submit OAuth parameters as part of the HTTP POST body (in a <code>POST</code> request).</li> <li><code>OAUTH_AUTH_TYPE_NONE</code> -- Don't submit OAuth parameters at all, i.e. a "NoAuth" request (also <code>GET</code> by default).</li> </ul> <p>From my experience, the <code>fetch()</code>, <code>getRequestToken()</code>, and <code>getAccessToken()</code> methods all respect this setting, <a href="http://www.php.net/manual/en/oauth.setauthtype.php" rel="nofollow">which can also be set with <code>OAuth::setAuthType()</code></a> on an instance of the object. In practice, I set the auth type to <code>OAUTH_AUTH_TYPE_FORM</code> while performing the dance, then reset to default -- <code>OAUTH_AUTH_TYPE_AUTHORIZATION</code> -- to make resource requests.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload