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';