Browse Source

🤖 Auto commit for release 'develop' on 2025-07-16

pull/897/head
JC5 3 months ago
parent
commit
af28a9029c
No known key found for this signature in database GPG Key ID: 910CF2B5E8B6CC6E
  1. 2
      app/Services/Nordigen/Request/PostNewTokenRequest.php
  2. 4
      app/Services/Nordigen/Request/Request.php
  3. 2
      app/Services/SimpleFIN/Request/SimpleFINRequest.php
  4. 10
      app/Services/SimpleFIN/SimpleFINService.php
  5. 12
      config/importer.php

2
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')),
],
]
);

4
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')),
],
]
);

2
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')),
],
];

10
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,12 +418,12 @@ 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')),
'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')),
];
Log::debug('Headers for claim URL exchange', $headers);
@ -501,7 +502,6 @@ class SimpleFINService
return $this->accessToken;
}
public function setSetupToken(string $setupToken): void
{
$this->setupToken = $setupToken;

12
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.',
];
Loading…
Cancel
Save