2023-07-16 03:07:53 +02:00
|
|
|
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:
|
2023-07-16 17:10:48 +02:00
|
|
|
urlAuthorize: 'https://api.digikey.com/v1/oauth2/authorize'
|
|
|
|
urlAccessToken: 'https://api.digikey.com/v1/oauth2/token'
|
2023-07-16 03:07:53 +02:00
|
|
|
urlResourceOwnerDetails: ''
|
2023-07-16 17:10:48 +02:00
|
|
|
|
|
|
|
# Sandbox
|
|
|
|
#urlAuthorize: 'https://sandbox-api.digikey.com/v1/oauth2/authorize'
|
|
|
|
#urlAccessToken: 'https://sandbox-api.digikey.com/v1/oauth2/token'
|
|
|
|
#urlResourceOwnerDetails: ''
|
2023-07-30 23:04:18 +02:00
|
|
|
|
|
|
|
ip_octopart_oauth:
|
|
|
|
type: generic
|
|
|
|
provider_class: '\League\OAuth2\Client\Provider\GenericProvider'
|
|
|
|
|
|
|
|
client_id: '%env(PROVIDER_OCTOPART_CLIENT_ID)%'
|
|
|
|
client_secret: '%env(PROVIDER_OCTOPART_SECRET)%'
|
|
|
|
|
|
|
|
redirect_route: 'oauth_client_check'
|
|
|
|
redirect_params: { name: 'ip_octopart_oauth' }
|
|
|
|
|
|
|
|
provider_options:
|
|
|
|
urlAuthorize: 'https://identity.nexar.com/connect/authorize'
|
|
|
|
urlAccessToken: 'https://identity.nexar.com/connect/token'
|
|
|
|
urlResourceOwnerDetails: ''
|