diff options
| author | Leitwolf11 | 2026-10-16 06:00:57 +0300 |
|---|---|---|
| committer | Leitwolf11 | 2026-10-16 06:00:57 +0300 |
| commit | bc653270652c1ab44d2144ddd17ae49b404e7cd2 (patch) | |
| tree | 2cc8867a56273c910d00855ac1eeac22fdee1bd6 /docs | |
| parent | 3877e3318e875cdebc3d7b9bc970b4496e5183a9 (diff) | |
| download | progmaweb-bc653270652c1ab44d2144ddd17ae49b404e7cd2.tar.gz | |
Return a failed Google callback to sign-in and correct stale statements
A Google callback that could not finish ended in an unhandled 500: a
visitor who declined on Google's consent screen, a callback whose state
cookie had expired, and a direct request to the callback path all got an
empty error page. The account API document already promised a redirect
to /login?google=failed for a failed callback; the handler of the Google
scheme now does that through OnRemoteFailure. Three new tests cover a
callback without state, a declined consent and a forged state.
Three statements no longer matched the sites:
- the bug report template still named the catalog paths without the
language and the build system; they are /langs/tala/<Publisher>/<Name>/
and /dslplugins/tazel/<Publisher>/<Name>/;
- the operations guide placed Tala content on xsharp-lang.xyz, which only
redirects to tala.run now;
- the architecture guide described the ViGet routing before the catalogs
per language and build system: it now gives the rewrites of /langs/tala
and /dslplugins/tazel, the redirects of /langs and /dslplugins, three
indexed ViGet pages and a sitemap with the home page and both catalogs.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ARCHITECTURE.md | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index cb4b20f..b2b46d6 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -45,8 +45,9 @@ One build serves three hosts. The host of a request, not a separate deployment, same URL without the parameter. See [Localization](LOCALIZATION.md). 2. **Account root.** `/` on the account host is rewritten to the internal `/account` page, so the account landing page has the short URL. -3. **ViGet.** On the ViGet host `/` is rewritten to `/viget` and `/dslplugins` to `/viget/dslplugins`. `/login`, - `/register` and `/recover` redirect to the account host. +3. **ViGet.** On the ViGet host `/` is rewritten to `/viget`, `/langs/tala` to `/viget/langs/tala` and + `/dslplugins/tazel` to `/viget/dslplugins/tazel`. `/langs` and `/dslplugins` redirect permanently to those two + catalogs. `/login`, `/register` and `/recover` redirect to the account host. 4. **Internal trees stay internal.** `/viget/...` on any other host redirects to the ViGet host, and `/account` on any other host redirects to the account host. @@ -63,11 +64,12 @@ The host is read from `X-Forwarded-Host` first and `Host` second, without the po | `/account` (shown as `/` on the account host) | account landing page | no | | `/login`, `/register`, `/recover` | authentication and recovery | no | | `/<Account>/dashboard` | dashboard of the signed-in account | no | -| `/viget` (shown as `/` on the ViGet host) | package catalog | yes | -| `/viget/dslplugins` (shown as `/dslplugins`) | DSL plugin catalog | yes | +| `/viget` (shown as `/` on the ViGet host) | registry status and the list of catalogs | yes | +| `/viget/langs/tala` (shown as `/langs/tala`) | catalog of Tala packages | yes | +| `/viget/dslplugins/tazel` (shown as `/dslplugins/tazel`) | catalog of Tazel DSL plugins | yes | -`robots.txt` and `sitemap.xml` are generated per host: the ViGet host lists its two catalog pages, every other host -lists the apex homepage only. Nginx additionally sends `X-Robots-Tag: noindex` for the whole account host. +`robots.txt` and `sitemap.xml` are generated per host: the ViGet host lists its home page and its two catalog pages, +every other host lists the apex homepage only. Nginx additionally sends `X-Robots-Tag: noindex` for the whole account host. Pages are rendered on the server for every request, because the language depends on the request. Two components run in the browser: the authentication form and the dashboard. |