App\Exceptions\OAuthExceptionHandler::accessDenied PHP Méthode

accessDenied() protected méthode

protected accessDenied ( League\OAuth2\Server\Exception\OAuthException $e ) : mixed
$e League\OAuth2\Server\Exception\OAuthException
Résultat mixed
    protected function accessDenied(OAuthException $e)
    {
        return Response::make(['errors' => ['status' => '401', 'code' => 'AccessDenied', 'title' => 'Access Denied', 'detail' => "The resource owner or authorization server denied the request."]], 401);
    }