summaryrefslogtreecommitdiff
blob: 086889f31a8831ccdf80cda5a372c917115a3a6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php

namespace MediaWiki\Extensions\OAuth\AuthorizationProvider\Grant;

use League\OAuth2\Server\Grant\ClientCredentialsGrant;
use League\OAuth2\Server\Grant\GrantTypeInterface;
use MediaWiki\Extensions\OAuth\AuthorizationProvider\AccessToken;

class ClientCredentials extends AccessToken {

	/**
	 * @return GrantTypeInterface
	 */
	protected function getGrant(): GrantTypeInterface {
		return new ClientCredentialsGrant();
	}
}