From 681a701b033650d0a4d0af782aedfeb30cb83402 Mon Sep 17 00:00:00 2001 From: konradoboza Date: Thu, 13 Jun 2024 08:36:32 +0200 Subject: [PATCH] IBX-8356: Reworked JWT GraphQL firewall configuration to comply with Symfony-based authentication --- ibexa/commerce/5.0/config/packages/security.yaml | 9 ++++----- ibexa/experience/5.0/config/packages/security.yaml | 9 ++++----- ibexa/headless/5.0/config/packages/security.yaml | 9 ++++----- ibexa/oss/5.0/config/packages/security.yaml | 9 ++++----- 4 files changed, 16 insertions(+), 20 deletions(-) diff --git a/ibexa/commerce/5.0/config/packages/security.yaml b/ibexa/commerce/5.0/config/packages/security.yaml index 00f756da..8bfde61b 100644 --- a/ibexa/commerce/5.0/config/packages/security.yaml +++ b/ibexa/commerce/5.0/config/packages/security.yaml @@ -101,12 +101,11 @@ security: #ibexa_jwt_graphql: # request_matcher: Ibexa\GraphQL\Security\NonAdminGraphQLRequestMatcher # user_checker: Ibexa\Core\MVC\Symfony\Security\UserChecker - # anonymous: ~ - # guard: - # authenticators: - # - lexik_jwt_authentication.jwt_token_authenticator - # entry_point: lexik_jwt_authentication.jwt_token_authenticator # stateless: true + # json_login: + # check_path: overblog_graphql_endpoint + # success_handler: lexik_jwt_authentication.handler.authentication_success + # failure_handler: lexik_jwt_authentication.handler.authentication_failure # Uncomment ibexa_oauth2_connect, ibexa_oauth2_front rules and comment ibexa_front firewall # to enable OAuth2 authentication diff --git a/ibexa/experience/5.0/config/packages/security.yaml b/ibexa/experience/5.0/config/packages/security.yaml index 52bd4ccc..a72b8eec 100644 --- a/ibexa/experience/5.0/config/packages/security.yaml +++ b/ibexa/experience/5.0/config/packages/security.yaml @@ -89,12 +89,11 @@ security: #ibexa_jwt_graphql: # request_matcher: Ibexa\GraphQL\Security\NonAdminGraphQLRequestMatcher # user_checker: Ibexa\Core\MVC\Symfony\Security\UserChecker - # anonymous: ~ - # guard: - # authenticators: - # - lexik_jwt_authentication.jwt_token_authenticator - # entry_point: lexik_jwt_authentication.jwt_token_authenticator # stateless: true + # json_login: + # check_path: overblog_graphql_endpoint + # success_handler: lexik_jwt_authentication.handler.authentication_success + # failure_handler: lexik_jwt_authentication.handler.authentication_failure # Uncomment ibexa_oauth2_connect, ibexa_oauth2_front rules and comment ibexa_front firewall # to enable OAuth2 authentication diff --git a/ibexa/headless/5.0/config/packages/security.yaml b/ibexa/headless/5.0/config/packages/security.yaml index 52bd4ccc..a72b8eec 100644 --- a/ibexa/headless/5.0/config/packages/security.yaml +++ b/ibexa/headless/5.0/config/packages/security.yaml @@ -89,12 +89,11 @@ security: #ibexa_jwt_graphql: # request_matcher: Ibexa\GraphQL\Security\NonAdminGraphQLRequestMatcher # user_checker: Ibexa\Core\MVC\Symfony\Security\UserChecker - # anonymous: ~ - # guard: - # authenticators: - # - lexik_jwt_authentication.jwt_token_authenticator - # entry_point: lexik_jwt_authentication.jwt_token_authenticator # stateless: true + # json_login: + # check_path: overblog_graphql_endpoint + # success_handler: lexik_jwt_authentication.handler.authentication_success + # failure_handler: lexik_jwt_authentication.handler.authentication_failure # Uncomment ibexa_oauth2_connect, ibexa_oauth2_front rules and comment ibexa_front firewall # to enable OAuth2 authentication diff --git a/ibexa/oss/5.0/config/packages/security.yaml b/ibexa/oss/5.0/config/packages/security.yaml index ce0ac721..feaf3e8f 100644 --- a/ibexa/oss/5.0/config/packages/security.yaml +++ b/ibexa/oss/5.0/config/packages/security.yaml @@ -67,12 +67,11 @@ security: #ibexa_jwt_graphql: # request_matcher: Ibexa\GraphQL\Security\NonAdminGraphQLRequestMatcher # user_checker: Ibexa\Core\MVC\Symfony\Security\UserChecker - # anonymous: ~ - # guard: - # authenticators: - # - lexik_jwt_authentication.jwt_token_authenticator - # entry_point: lexik_jwt_authentication.jwt_token_authenticator # stateless: true + # json_login: + # check_path: overblog_graphql_endpoint + # success_handler: lexik_jwt_authentication.handler.authentication_success + # failure_handler: lexik_jwt_authentication.handler.authentication_failure ibexa_front: pattern: ^/