mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-26 06:59:49 +05:30
Added access denied exception
This commit is contained in:
parent
f44b618531
commit
7242a8db31
@ -191,6 +191,18 @@ class OAuthServerException extends \Exception
|
|||||||
return new static('The refresh token is invalid.', 'invalid_request', 400, $hint);
|
return new static('The refresh token is invalid.', 'invalid_request', 400, $hint);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Access denied
|
||||||
|
*
|
||||||
|
* @param null|string $hint
|
||||||
|
*
|
||||||
|
* @return static
|
||||||
|
*/
|
||||||
|
public static function accessDenied($hint = null)
|
||||||
|
{
|
||||||
|
return new static('The resource owner or authorization server denied the request.', 401, $hint);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string
|
* @return string
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user