You are here

function oauth_authorize_request_token in OAuth 1.0 6

Authorize a request token

Set the authorized property for the token, to allow an access token to be generated, also set the UID of the request token.

Parameters

key: Request token key.

1 call to oauth_authorize_request_token()
oauth_grant_access_submit in ./oauth.module
Asks users for granting proper access/deny permissions for different services

File

./oauth.module, line 321

Code

function oauth_authorize_request_token($key) {
  global $user;
  db_query("UPDATE {oauth_token} SET authorized = 1, uid=%d WHERE token_key = '%s'", $user->uid, $key);
}