Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\OAuth\AuthorizationProvider; |
4 | |
5 | use MediaWiki\User\User; |
6 | |
7 | interface IAuthorizationProvider { |
8 | |
9 | /** |
10 | * Set user that on whose behalf |
11 | * the client is making the request |
12 | * |
13 | * @param User $user |
14 | */ |
15 | public function setUser( User $user ); |
16 | |
17 | /** |
18 | * Must user explicitly allow application |
19 | * to use this grant type |
20 | * |
21 | * @return bool |
22 | */ |
23 | public function needsUserApproval(); |
24 | |
25 | } |