From c28c9b1d19c96aa5412c6182358a7330e453169d Mon Sep 17 00:00:00 2001 From: Marc Kreidler Date: Thu, 18 Dec 2025 18:17:38 +0100 Subject: [PATCH] Remove OAuthTokenManager leftovers --- config/packages/knpu_oauth2_client.yaml | 15 --------------- .../Providers/BuerklinProvider.php | 3 +-- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/config/packages/knpu_oauth2_client.yaml b/config/packages/knpu_oauth2_client.yaml index bdbb7bb0..4967684e 100644 --- a/config/packages/knpu_oauth2_client.yaml +++ b/config/packages/knpu_oauth2_client.yaml @@ -36,18 +36,3 @@ knpu_oauth2_client: urlAuthorize: 'https://identity.nexar.com/connect/authorize' urlAccessToken: 'https://identity.nexar.com/connect/token' urlResourceOwnerDetails: '' - - ip_buerklin_oauth: - type: generic - provider_class: '\League\OAuth2\Client\Provider\GenericProvider' - - client_id: '%env(settings:buerklin:clientId)%' - client_secret: '%env(settings:buerklin:secret)%' - - redirect_route: 'oauth_client_check' - redirect_params: { name: 'ip_buerklin_oauth' } - - provider_options: - urlAuthorize: 'https://www.buerklin.com/authorizationserver/oauth/token' - urlAccessToken: 'https://www.buerklin.com/authorizationserver/oauth/token' - urlResourceOwnerDetails: '' diff --git a/src/Services/InfoProviderSystem/Providers/BuerklinProvider.php b/src/Services/InfoProviderSystem/Providers/BuerklinProvider.php index 610e2ac5..b22b96a7 100644 --- a/src/Services/InfoProviderSystem/Providers/BuerklinProvider.php +++ b/src/Services/InfoProviderSystem/Providers/BuerklinProvider.php @@ -40,7 +40,7 @@ class BuerklinProvider implements BatchInfoProviderInterface private const ENDPOINT_URL = 'https://www.buerklin.com/buerklinws/v2/buerklin'; public const DISTRIBUTOR_NAME = 'Buerklin'; - private const OAUTH_APP_NAME = 'ip_buerklin_oauth'; + private const CACHE_TTL = 600; /** * Local in-request cache to avoid hitting the PSR cache repeatedly for the same product. @@ -175,7 +175,6 @@ class BuerklinProvider implements BatchInfoProviderInterface 'name' => 'Buerklin', 'description' => 'This provider uses the Buerklin API to search for parts.', 'url' => 'https://www.buerklin.com/', - //'oauth_app_name' => self::OAUTH_APP_NAME, //https://github.com/Part-DB/Part-DB-server/pull/1151#discussion_r2622979937 'disabled_help' => 'Configure the API Client ID, Secret, Username and Password provided by Buerklin in the provider settings to enable.', 'settings_class' => BuerklinSettings::class ];