Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 5 |
|
0.00% |
0 / 5 |
CRAP | |
0.00% |
0 / 1 |
OAuthDataStore | |
0.00% |
0 / 5 |
|
0.00% |
0 / 5 |
30 | |
0.00% |
0 / 1 |
lookup_consumer | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
lookup_token | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
lookup_nonce | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
new_request_token | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
new_access_token | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | // vim: foldmethod=marker |
3 | /** |
4 | * The MIT License |
5 | * |
6 | * Copyright (c) 2007 Andy Smith |
7 | * |
8 | * Permission is hereby granted, free of charge, to any person obtaining a copy |
9 | * of this software and associated documentation files ( the "Software" ), to deal |
10 | * in the Software without restriction, including without limitation the rights |
11 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
12 | * copies of the Software, and to permit persons to whom the Software is |
13 | * furnished to do so, subject to the following conditions: |
14 | * |
15 | * The above copyright notice and this permission notice shall be included in |
16 | * all copies or substantial portions of the Software. |
17 | * |
18 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
19 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
20 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
21 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
22 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
23 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
24 | * THE SOFTWARE. |
25 | */ |
26 | |
27 | namespace MediaWiki\Extension\OAuth\Lib; |
28 | |
29 | class OAuthDataStore { |
30 | function lookup_consumer( $consumer_key ) { |
31 | // implement me |
32 | } |
33 | |
34 | function lookup_token( $consumer, $token_type, $token ) { |
35 | // implement me |
36 | } |
37 | |
38 | function lookup_nonce( $consumer, $token, $nonce, $timestamp ) { |
39 | // implement me |
40 | } |
41 | |
42 | function new_request_token( $consumer, $callback = null ) { |
43 | // return a new token attached to this consumer |
44 | } |
45 | |
46 | function new_access_token( $token, $consumer, $verifier = null ) { |
47 | // return a new access token attached to this consumer |
48 | // for the user associated with this token if the request token |
49 | // is authorized |
50 | // should also invalidate the request token |
51 | } |
52 | |
53 | } |