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

namespace MediaWiki\Extensions\OAuth\Exception;

use League\OAuth2\Server\Exception\OAuthServerException;

class ClientApprovalDenyException extends OAuthServerException {

	public function __construct( $redirectUri ) {
		parent::__construct(
			wfMessage( 'mwoauth-oauth2-error-user-approval-deny' )->plain(),
			401,
			'unauthorized_client',
			400,
			null,
			$redirectUri
		);
	}
}