From fbe09a1afa3d92da00a025bb4ac49db49d71874b Mon Sep 17 00:00:00 2001 From: Christophe Jossart Date: Mon, 30 Sep 2024 19:45:54 +0200 Subject: [PATCH] refactor(preview): do not use grant for internal services --- packages/drupal/custom/custom.deploy.php | 1 + packages/ui/src/components/Routes/Preview.tsx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/drupal/custom/custom.deploy.php b/packages/drupal/custom/custom.deploy.php index c9cd3390c..b1bc5858e 100644 --- a/packages/drupal/custom/custom.deploy.php +++ b/packages/drupal/custom/custom.deploy.php @@ -101,6 +101,7 @@ function _custom_deploy_create_consumer( 'label' => $label, 'client_id' => $client_id, 'is_default' => FALSE, + 'third_party' => FALSE, 'secret' => $clientSecret, 'redirect' => $oAuthCallback, ])->save(); diff --git a/packages/ui/src/components/Routes/Preview.tsx b/packages/ui/src/components/Routes/Preview.tsx index d652ce539..71a512dc9 100644 --- a/packages/ui/src/components/Routes/Preview.tsx +++ b/packages/ui/src/components/Routes/Preview.tsx @@ -6,8 +6,8 @@ import React from 'react'; import { clear, useOperation } from '../../utils/operation'; import { Loading } from '../Molecules/Loading'; -import { PageDisplay } from '../Organisms/PageDisplay'; import { Messages } from '../Molecules/Messages'; +import { PageDisplay } from '../Organisms/PageDisplay'; function usePreviewParameters(): OperationVariables< typeof PreviewDrupalPageQuery