geenforce client: make ApiToken optional for IP-allowlisted kiosks

Get-ShopdbConfig required both BaseUrl AND ApiToken, so a token-less kiosk
(authorized by the server's IP allowlist) got a null config and never ran.
Now BaseUrl alone is a valid config; X-API-Key is sent only when a token is
present (New-ShopdbAuthHeaders), so token-authorized sites are unchanged and
vaulted-network sites need no per-PC token.
This commit is contained in:
cproudlock
2026-07-27 14:17:51 -04:00
parent 0860aa85c5
commit 2d675720b7
2 changed files with 17 additions and 5 deletions

View File

@@ -85,7 +85,7 @@ try {
$config = Get-ShopdbConfig -BaseUrl $BaseUrl -ApiToken $ApiToken
if (-not $config) {
Write-Log 'No shopdb BaseUrl/ApiToken configured yet - retry next cycle.' 'WARN'
Write-Log 'No shopdb BaseUrl configured yet - retry next cycle.' 'WARN'
exit 0
}