Skip to content

Commit c28c9b1

Browse files
committed
Remove OAuthTokenManager leftovers
1 parent 60dc240 commit c28c9b1

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

config/packages/knpu_oauth2_client.yaml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -36,18 +36,3 @@ knpu_oauth2_client:
3636
urlAuthorize: 'https://identity.nexar.com/connect/authorize'
3737
urlAccessToken: 'https://identity.nexar.com/connect/token'
3838
urlResourceOwnerDetails: ''
39-
40-
ip_buerklin_oauth:
41-
type: generic
42-
provider_class: '\League\OAuth2\Client\Provider\GenericProvider'
43-
44-
client_id: '%env(settings:buerklin:clientId)%'
45-
client_secret: '%env(settings:buerklin:secret)%'
46-
47-
redirect_route: 'oauth_client_check'
48-
redirect_params: { name: 'ip_buerklin_oauth' }
49-
50-
provider_options:
51-
urlAuthorize: 'https://www.buerklin.com/authorizationserver/oauth/token'
52-
urlAccessToken: 'https://www.buerklin.com/authorizationserver/oauth/token'
53-
urlResourceOwnerDetails: ''

src/Services/InfoProviderSystem/Providers/BuerklinProvider.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class BuerklinProvider implements BatchInfoProviderInterface
4040
private const ENDPOINT_URL = 'https://www.buerklin.com/buerklinws/v2/buerklin';
4141

4242
public const DISTRIBUTOR_NAME = 'Buerklin';
43-
private const OAUTH_APP_NAME = 'ip_buerklin_oauth';
43+
4444
private const CACHE_TTL = 600;
4545
/**
4646
* Local in-request cache to avoid hitting the PSR cache repeatedly for the same product.
@@ -175,7 +175,6 @@ public function getProviderInfo(): array
175175
'name' => 'Buerklin',
176176
'description' => 'This provider uses the Buerklin API to search for parts.',
177177
'url' => 'https://www.buerklin.com/',
178-
//'oauth_app_name' => self::OAUTH_APP_NAME, //https://github.com/Part-DB/Part-DB-server/pull/1151#discussion_r2622979937
179178
'disabled_help' => 'Configure the API Client ID, Secret, Username and Password provided by Buerklin in the provider settings to enable.',
180179
'settings_class' => BuerklinSettings::class
181180
];

0 commit comments

Comments
 (0)