Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
CRAP | |
100.00% |
1 / 1 |
ClientCredentials | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 | |
100.00% |
1 / 1 |
getGrant | |
100.00% |
1 / 1 |
|
100.00% |
1 / 1 |
1 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Extension\OAuth\AuthorizationProvider\Grant; |
4 | |
5 | use League\OAuth2\Server\Grant\ClientCredentialsGrant; |
6 | use League\OAuth2\Server\Grant\GrantTypeInterface; |
7 | use MediaWiki\Extension\OAuth\AuthorizationProvider\AccessToken; |
8 | |
9 | class ClientCredentials extends AccessToken { |
10 | |
11 | /** |
12 | * @return GrantTypeInterface |
13 | */ |
14 | protected function getGrant(): GrantTypeInterface { |
15 | return new ClientCredentialsGrant(); |
16 | } |
17 | } |