Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/apps/api/ViGet/JavaProperties.cs
diff options
context:
space:
mode:
authorLeitwolf112026-10-03 18:46:35 +0300
committerLeitwolf112026-10-03 18:46:35 +0300
commitec774db15976385a6d5ea6f48d3622fe507d3843 (patch)
tree285451ccb4ff35b37f89805415003e372fda02ec /apps/api/ViGet/JavaProperties.cs
parentbc1b0b080b398e52b3201034f92398750f415ed2 (diff)
downloadprogmaweb-ec774db15976385a6d5ea6f48d3622fe507d3843.tar.gz
Run the account API without a Google client
With an empty Google client identifier or secret the API answered every request with 500, including registration, password sign-in and the status route. The Google scheme was always registered, and the authentication middleware initializes every remote scheme for each request; with empty credentials the validation of the Google options threw there, before any endpoint ran. The API could not be started locally without credentials, and the "Google sign-in is unavailable" answer of the start endpoint was never reached. The Google scheme is now registered only when both values are configured. Without it the service runs normally, the start endpoint answers 503, the completion endpoint redirects to the failed sign-in page without a session, and the callback path is not a route. With both values nothing changes. The test factory passes the two values as host settings. The program makes the decision while it registers services, and configuration sources a test factory adds are applied only when the host is built, after that point. New tests run the service without a Google client: the ordinary routes, a full register, sign-out and sign-in round trip, and the three Google paths. They failed with 500 against the previous program and pass now, also when the environment of the test run carries Google credentials. The guides no longer list this as a limitation or ask for placeholder credentials. Deploying this change restarts the API, which deletes every account while the store is in memory.
Diffstat (limited to 'apps/api/ViGet/JavaProperties.cs')
0 files changed, 0 insertions, 0 deletions