Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
RhysLees committed Jul 30, 2024
1 parent d2875f6 commit 55fe483
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Connectors/DocuWareConnector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 55fe483

Please sign in to comment.