mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-11-15 09:47:46 +05:30
Added optional redirectUri parameter to accessDenied method
This commit is contained in:
parent
f4b83baf74
commit
38a7e53cb5
@ -197,13 +197,20 @@ class OAuthServerException extends \Exception
|
||||
/**
|
||||
* Access denied
|
||||
*
|
||||
* @param null|string $hint
|
||||
* @param string|null $hint
|
||||
* @param string|null $redirectUri
|
||||
*
|
||||
* @return static
|
||||
*/
|
||||
public static function accessDenied($hint = null)
|
||||
public static function accessDenied($hint = null, $redirectUri = null)
|
||||
{
|
||||
return new static('The server denied the request.', 'access_denied', 401, $hint);
|
||||
return new static(
|
||||
'The resource owner or authorization server denied the request.',
|
||||
'access_denied',
|
||||
401,
|
||||
$hint,
|
||||
$redirectUri
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user