]> git.mxchange.org Git - friendica.git/blob - src/Security/OAuth1/OAuthDataStore.php
version 2021.03-dev
[friendica.git] / src / Security / OAuth1 / OAuthDataStore.php
1 <?php
2
3 namespace Friendica\Security\OAuth1;
4
5 class OAuthDataStore
6 {
7         function lookup_consumer($consumer_key)
8         {
9                 // implement me
10         }
11
12         function lookup_token(OAuthConsumer $consumer, $token_type, $token_id)
13         {
14                 // implement me
15         }
16
17         function lookup_nonce(OAuthConsumer $consumer, OAuthToken $token, $nonce, int $timestamp)
18         {
19                 // implement me
20         }
21
22         function new_request_token(OAuthConsumer $consumer, $callback = null)
23         {
24                 // return a new token attached to this consumer
25         }
26
27         function new_access_token(OAuthToken $token, OAuthConsumer $consumer, $verifier = null)
28         {
29                 // return a new access token attached to this consumer
30                 // for the user associated with this token if the request token
31                 // is authorized
32                 // should also invalidate the request token
33         }
34 }