diff --git a/app/Services/Nordigen/Request/PostNewTokenRequest.php b/app/Services/Nordigen/Request/PostNewTokenRequest.php index db6cb7aa..7f57b486 100644 --- a/app/Services/Nordigen/Request/PostNewTokenRequest.php +++ b/app/Services/Nordigen/Request/PostNewTokenRequest.php @@ -57,7 +57,7 @@ class PostNewTokenRequest extends Request 'headers' => [ 'accept' => 'application/json', 'content-type' => 'application/json', - 'User-Agent' => sprintf('FF3-data-importer/%s (%s)', config('importer.version'), config('importer.line_b')), + 'User-Agent' => sprintf('FF3-data-importer/%s (%s)', config('importer.version'), config('importer.line_b')), ], ] ); diff --git a/app/Services/Nordigen/Request/Request.php b/app/Services/Nordigen/Request/Request.php index fbe9f9f2..86a1d45c 100644 --- a/app/Services/Nordigen/Request/Request.php +++ b/app/Services/Nordigen/Request/Request.php @@ -111,7 +111,7 @@ abstract class Request 'Accept' => 'application/json', 'Content-Type' => 'application/json', 'Authorization' => sprintf('Bearer %s', $this->getToken()), - 'User-Agent' => sprintf('FF3-data-importer/%s (%s)', config('importer.version'), config('importer.line_a')), + 'User-Agent' => sprintf('FF3-data-importer/%s (%s)', config('importer.version'), config('importer.line_a')), ], ] ); @@ -259,7 +259,7 @@ abstract class Request 'Accept' => 'application/json', 'Content-Type' => 'application/json', 'Authorization' => sprintf('Bearer %s', $this->getToken()), - 'User-Agent' => sprintf('FF3-data-importer/%s (%s)', config('importer.version'), config('importer.line_e')), + 'User-Agent' => sprintf('FF3-data-importer/%s (%s)', config('importer.version'), config('importer.line_e')), ], ] ); diff --git a/app/Services/SimpleFIN/Request/SimpleFINRequest.php b/app/Services/SimpleFIN/Request/SimpleFINRequest.php index 6506c010..5df99049 100644 --- a/app/Services/SimpleFIN/Request/SimpleFINRequest.php +++ b/app/Services/SimpleFIN/Request/SimpleFINRequest.php @@ -85,7 +85,7 @@ abstract class SimpleFINRequest 'headers' => [ 'Accept' => 'application/json', 'Content-Type' => 'application/json', - 'User-Agent' => sprintf('FF3-data-importer/%s (%s)', config('importer.version'), config('importer.line_c')) + 'User-Agent' => sprintf('FF3-data-importer/%s (%s)', config('importer.version'), config('importer.line_c')), ], ]; diff --git a/app/Services/SimpleFIN/SimpleFINService.php b/app/Services/SimpleFIN/SimpleFINService.php index ed3b4057..8fee75cf 100644 --- a/app/Services/SimpleFIN/SimpleFINService.php +++ b/app/Services/SimpleFIN/SimpleFINService.php @@ -66,6 +66,7 @@ class SimpleFINService } if (!$isValid) { Log::error('Token is not a base64-encoded claim URL.'); + // Token is not a base64 claim URL, we need an API URL throw new ImporterErrorException('Token is not a base64-encoded claim URL.'); } @@ -417,9 +418,9 @@ class SimpleFINService 'verify' => config('importer.connection.verify'), ]); - $parts = parse_url($claimUrl); + $parts = parse_url($claimUrl); Log::debug(sprintf('Parsed $claimUrl parts: %s', json_encode($parts))); - $headers = [ + $headers = [ 'Content-Length' => '0', // 'Origin' => sprintf('%s://%s', $parts['scheme'] ?? 'https', $parts['host'] ?? 'localhost'), 'User-Agent' => sprintf('FF3-data-importer/%s (%s)', config('importer.version'), config('importer.line_d')), @@ -501,7 +502,6 @@ class SimpleFINService return $this->accessToken; } - public function setSetupToken(string $setupToken): void { $this->setupToken = $setupToken; diff --git a/config/importer.php b/config/importer.php index f3490217..73ece1ae 100644 --- a/config/importer.php +++ b/config/importer.php @@ -25,7 +25,7 @@ declare(strict_types=1); return [ 'version' => 'develop/2025-07-16', - 'build_time' => 1752680881, + 'build_time' => 1752686181, 'flows' => ['nordigen', 'spectre', 'file', 'simplefin'], 'enabled_flows' => [ 'nordigen' => true, @@ -119,9 +119,9 @@ return [ 'Windows-1251', ], // some random lines for the data importer to use. - 'line_a' => 'Everything precious is fragile', - 'line_b' => 'Forgive yourself for not being at peace.', - 'line_c' => 'Doesnt look like anything to me.', - 'line_d' => 'Don’t feel so sorry for yourself. Make do.', - 'line_e' => 'All the decisive blows are struck left-handed.', + 'line_a' => 'Everything precious is fragile', + 'line_b' => 'Forgive yourself for not being at peace.', + 'line_c' => 'Doesnt look like anything to me.', + 'line_d' => 'Don’t feel so sorry for yourself. Make do.', + 'line_e' => 'All the decisive blows are struck left-handed.', ];