summaryrefslogtreecommitdiff
blob: 70cfb4b8e05e229dc73057e0572c4330b18058ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php

namespace MediaWiki\Extensions\OAuth\AuthorizationProvider;

use User;

interface IAuthorizationProvider {

	/**
	 * Set user that on whose behalf
	 * the client is making the request
	 *
	 * @param User $user
	 */
	public function setUser( User $user );

	/**
	 * Must user explicitly allow application
	 * to use this grant type
	 *
	 * @return bool
	 */
	public function needsUserApproval();

}