mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-17 15:49:34 +00:00
Remove OAuthTokenManager leftovers
This commit is contained in:
parent
60dc240d68
commit
c28c9b1d19
2 changed files with 1 additions and 17 deletions
|
|
@ -36,18 +36,3 @@ knpu_oauth2_client:
|
||||||
urlAuthorize: 'https://identity.nexar.com/connect/authorize'
|
urlAuthorize: 'https://identity.nexar.com/connect/authorize'
|
||||||
urlAccessToken: 'https://identity.nexar.com/connect/token'
|
urlAccessToken: 'https://identity.nexar.com/connect/token'
|
||||||
urlResourceOwnerDetails: ''
|
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: ''
|
|
||||||
|
|
|
||||||
|
|
@ -40,7 +40,7 @@ class BuerklinProvider implements BatchInfoProviderInterface
|
||||||
private const ENDPOINT_URL = 'https://www.buerklin.com/buerklinws/v2/buerklin';
|
private const ENDPOINT_URL = 'https://www.buerklin.com/buerklinws/v2/buerklin';
|
||||||
|
|
||||||
public const DISTRIBUTOR_NAME = 'Buerklin';
|
public const DISTRIBUTOR_NAME = 'Buerklin';
|
||||||
private const OAUTH_APP_NAME = 'ip_buerklin_oauth';
|
|
||||||
private const CACHE_TTL = 600;
|
private const CACHE_TTL = 600;
|
||||||
/**
|
/**
|
||||||
* Local in-request cache to avoid hitting the PSR cache repeatedly for the same product.
|
* 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',
|
'name' => 'Buerklin',
|
||||||
'description' => 'This provider uses the Buerklin API to search for parts.',
|
'description' => 'This provider uses the Buerklin API to search for parts.',
|
||||||
'url' => 'https://www.buerklin.com/',
|
'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.',
|
'disabled_help' => 'Configure the API Client ID, Secret, Username and Password provided by Buerklin in the provider settings to enable.',
|
||||||
'settings_class' => BuerklinSettings::class
|
'settings_class' => BuerklinSettings::class
|
||||||
];
|
];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue