mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Added optional redirectUri parameter to accessDenied method
This commit is contained in:
@@ -197,13 +197,20 @@ class OAuthServerException extends \Exception
|
|||||||
/**
|
/**
|
||||||
* Access denied
|
* Access denied
|
||||||
*
|
*
|
||||||
* @param null|string $hint
|
* @param string|null $hint
|
||||||
|
* @param string|null $redirectUri
|
||||||
*
|
*
|
||||||
* @return static
|
* @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
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user