mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-31 00:04:40 +02:00
Added proper OAuth authentication for digikey and other providers
This commit is contained in:
parent
a95ba1acc4
commit
c203de082e
13 changed files with 876 additions and 19 deletions
|
@ -2,16 +2,4 @@ framework:
|
|||
http_client:
|
||||
default_options:
|
||||
headers:
|
||||
'User-Agent': 'Part-DB'
|
||||
|
||||
|
||||
scoped_clients:
|
||||
digikey.client:
|
||||
base_uri: 'https://sandbox-api.digikey.com'
|
||||
auth_bearer: '%env(PROVIDER_DIGIKEY_TOKEN)%'
|
||||
headers:
|
||||
X-DIGIKEY-Client-Id: '%env(PROVIDER_DIGIKEY_CLIENT_ID)%'
|
||||
X-DIGIKEY-Locale-Site: 'DE'
|
||||
X-DIGIKEY-Locale-Language: 'de'
|
||||
X-DIGIKEY-Locale-Currency: '%partdb.default_currency%'
|
||||
X-DIGIKEY-Customer-Id: 0
|
||||
'User-Agent': 'Part-DB'
|
Loading…
Add table
Add a link
Reference in a new issue