Skip to content

Commit ce443fd

Browse files
blazeyopmelab
authored andcommitted
#765 Added basic_auth support to the query routes. (#766)
1 parent a6d86e8 commit ce443fd

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/Annotation/GraphQLAnnotationBase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ abstract class GraphQLAnnotationBase extends Plugin {
7777
public $response_cache_contexts = ['user.permissions'];
7878

7979
/**
80-
* The cache tags for caching theresponse.
80+
* The cache tags for caching the response.
8181
*
8282
* @var array
8383
*/

src/Routing/QueryRoutes.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ protected function alterRoutes(RouteCollection $collection) {
4545
'_controller' => '\Drupal\graphql\Controller\RequestController::handleRequest',
4646
], [
4747
'_graphql_query_access' => 'TRUE',
48+
], [
49+
'_auth' => ['basic_auth', 'cookie'],
4850
]));
4951
}
5052

0 commit comments

Comments
 (0)