From c1a10ac7a5f41013cc9337ae316b201b372a5b0b Mon Sep 17 00:00:00 2001 From: Marc Date: Thu, 13 Mar 2025 17:09:24 +0100 Subject: [PATCH 1/3] Add ip_buerklin_oauth to knpu_oauth2_client.yaml --- config/packages/knpu_oauth2_client.yaml | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/config/packages/knpu_oauth2_client.yaml b/config/packages/knpu_oauth2_client.yaml index 7d296a8b..d53f604a 100644 --- a/config/packages/knpu_oauth2_client.yaml +++ b/config/packages/knpu_oauth2_client.yaml @@ -22,7 +22,7 @@ knpu_oauth2_client: #urlAccessToken: 'https://sandbox-api.digikey.com/v1/oauth2/token' #urlResourceOwnerDetails: '' - ip_octopart_oauth: + ip_octopart_oauth: type: generic provider_class: '\League\OAuth2\Client\Provider\GenericProvider' @@ -35,4 +35,19 @@ knpu_oauth2_client: provider_options: urlAuthorize: 'https://identity.nexar.com/connect/authorize' urlAccessToken: 'https://identity.nexar.com/connect/token' - urlResourceOwnerDetails: '' \ No newline at end of file + urlResourceOwnerDetails: '' + + ip_buerklin_oauth: + type: generic + provider_class: '\League\OAuth2\Client\Provider\GenericProvider' + + client_id: '%env(PROVIDER_BUERKLIN_CLIENT_ID)%' + client_secret: '%env(PROVIDER_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: '' From 0744ff39491a21aa07e5bd62afb396b8a3c89d25 Mon Sep 17 00:00:00 2001 From: Marc Date: Thu, 13 Mar 2025 17:20:51 +0100 Subject: [PATCH 2/3] Update buerklin authorize URL in knpu_oauth2_client.yaml --- config/packages/knpu_oauth2_client.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/packages/knpu_oauth2_client.yaml b/config/packages/knpu_oauth2_client.yaml index d53f604a..12030c68 100644 --- a/config/packages/knpu_oauth2_client.yaml +++ b/config/packages/knpu_oauth2_client.yaml @@ -22,7 +22,7 @@ knpu_oauth2_client: #urlAccessToken: 'https://sandbox-api.digikey.com/v1/oauth2/token' #urlResourceOwnerDetails: '' - ip_octopart_oauth: + ip_octopart_oauth: type: generic provider_class: '\League\OAuth2\Client\Provider\GenericProvider' @@ -48,6 +48,6 @@ knpu_oauth2_client: redirect_params: { name: 'ip_buerklin_oauth' } provider_options: - urlAuthorize: 'https://www.buerklin.com/authorizationserver/oauth/token' + urlAuthorize: 'https://www.buerklin.com/authorizationserver/oauth/authorize' urlAccessToken: 'https://www.buerklin.com/authorizationserver/oauth/token' urlResourceOwnerDetails: '' From d451d65f6b2d266dba9b43324e3d450e31b2fc75 Mon Sep 17 00:00:00 2001 From: Marc Date: Thu, 13 Mar 2025 18:10:32 +0100 Subject: [PATCH 3/3] Update knpu_oauth2_client.yaml --- config/packages/knpu_oauth2_client.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/packages/knpu_oauth2_client.yaml b/config/packages/knpu_oauth2_client.yaml index 12030c68..88467d3d 100644 --- a/config/packages/knpu_oauth2_client.yaml +++ b/config/packages/knpu_oauth2_client.yaml @@ -48,6 +48,6 @@ knpu_oauth2_client: redirect_params: { name: 'ip_buerklin_oauth' } provider_options: - urlAuthorize: 'https://www.buerklin.com/authorizationserver/oauth/authorize' + urlAuthorize: 'https://www.buerklin.com/authorizationserver/oauth/token' urlAccessToken: 'https://www.buerklin.com/authorizationserver/oauth/token' urlResourceOwnerDetails: ''