From 55fe483f595338ab15ad20639b7e5e7c402c8fcf Mon Sep 17 00:00:00 2001 From: Rhys Lees <43909932+RhysLees@users.noreply.github.com> Date: Tue, 30 Jul 2024 21:48:19 +0100 Subject: [PATCH] WIP --- src/Connectors/DocuWareConnector.php | 2 +- .../Authentication/OAuth/GetResponsibleIdentityService.php | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Connectors/DocuWareConnector.php b/src/Connectors/DocuWareConnector.php index ddc2e4a..aad9456 100644 --- a/src/Connectors/DocuWareConnector.php +++ b/src/Connectors/DocuWareConnector.php @@ -89,7 +89,7 @@ protected function getOrCreateNewOAuthToken() protected function getAuthenticationTokenEndpoint(): IdentityServiceConfiguration { - $responsibleIdentityServiceResponse = (new GetResponsibleIdentityService)->send(); + $responsibleIdentityServiceResponse = (new GetResponsibleIdentityService($this->configuration->url))->send(); $identityServiceConfigurationResponse = (new GetIdentityServiceConfiguration( identityServiceUrl: $responsibleIdentityServiceResponse->dto()->identityServiceUrl diff --git a/src/Requests/Authentication/OAuth/GetResponsibleIdentityService.php b/src/Requests/Authentication/OAuth/GetResponsibleIdentityService.php index 08aad97..1de4f07 100644 --- a/src/Requests/Authentication/OAuth/GetResponsibleIdentityService.php +++ b/src/Requests/Authentication/OAuth/GetResponsibleIdentityService.php @@ -18,6 +18,10 @@ class GetResponsibleIdentityService extends SoloRequest implements Cacheable protected Method $method = Method::GET; + public function __construct( + protected null|string $url = null + ) {} + public function resolveEndpoint(): string { $base = config('laravel-docuware.credentials.url').'/DocuWare/Platform';