mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-02 01:04:41 +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
18
config/packages/knpu_oauth2_client.yaml
Normal file
18
config/packages/knpu_oauth2_client.yaml
Normal file
|
@ -0,0 +1,18 @@
|
|||
knpu_oauth2_client:
|
||||
clients:
|
||||
# configure your clients as described here: https://github.com/knpuniversity/oauth2-client-bundle#configuration
|
||||
|
||||
ip_digikey_oauth:
|
||||
type: generic
|
||||
provider_class: '\League\OAuth2\Client\Provider\GenericProvider'
|
||||
|
||||
client_id: '%env(PROVIDER_DIGIKEY_CLIENT_ID)%'
|
||||
client_secret: '%env(PROVIDER_DIGIKEY_SECRET)%'
|
||||
|
||||
redirect_route: 'oauth_client_check'
|
||||
redirect_params: {name: 'ip_digikey_oauth'}
|
||||
|
||||
provider_options:
|
||||
urlAuthorize: 'https://sandbox-api.digikey.com/v1/oauth2/authorize'
|
||||
urlAccessToken: 'https://sandbox-api.digikey.com/v1/oauth2/token'
|
||||
urlResourceOwnerDetails: ''
|
Loading…
Add table
Add a link
Reference in a new issue