This commit is contained in:
Your Name
2021-08-04 00:56:18 +02:00
parent 51941b88ee
commit f01509cab1
12 changed files with 112 additions and 139 deletions
+3 -4
View File
@@ -15,10 +15,9 @@ class Authentication
public function handle($request, Closure $next)
{
if ($request->header('Gql-Session') === 'SUPER_SECRET_KEY_HEADER') {
return "";
}
else {
throw new AccessDeniedHttpException;
return '';
} else {
throw new AccessDeniedHttpException();
}
return $next($request);
+1 -1
View File
@@ -69,6 +69,6 @@ class Dummy extends GraphQLSubscription
*/
public function resolve($root, array $args, GraphQLContext $context, ResolveInfo $resolveInfo): array
{
return array($root);
return [$root];
}
}