Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
OauthInterface.php
Go to the documentation of this file.
1 <?php
7 
16 interface OauthInterface
17 {
21  const ERR_OK = 0;
22 
24 
26 
28 
30 
31  const ERR_NONCE_USED = 5;
32 
34 
36 
38 
39  const ERR_TOKEN_USED = 9;
40 
41  const ERR_TOKEN_EXPIRED = 10;
42 
43  const ERR_TOKEN_REVOKED = 11;
44 
45  const ERR_TOKEN_REJECTED = 12;
46 
48 
50 
52 
54 
56 
62  const SIGNATURE_SHA1 = 'HMAC-SHA1';
63 
64  const SIGNATURE_SHA256 = 'HMAC-SHA256';
65 
93  public function getRequestToken($params, $requestUrl, $httpMethod = 'POST');
94 
122  public function getAccessToken($params, $requestUrl, $httpMethod = 'POST');
123 
144  public function validateAccessTokenRequest($params, $requestUrl, $httpMethod = 'POST');
145 
153  public function validateAccessToken($accessToken);
154 
180  public function buildAuthorizationHeader(
181  $params,
182  $requestUrl,
183  $signatureMethod = self::SIGNATURE_SHA1,
184  $httpMethod = 'POST'
185  );
186 }
getRequestToken($params, $requestUrl, $httpMethod='POST')
validateAccessTokenRequest($params, $requestUrl, $httpMethod='POST')
getAccessToken($params, $requestUrl, $httpMethod='POST')
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
Definition: website.php:18