Commit eb1ec789 by PLN (Algolia)

admin: gate is the auth service — handshake login, translating api_root

parent 2aff4c19
...@@ -9,14 +9,18 @@ backend: ...@@ -9,14 +9,18 @@ backend:
# (Sveltia does not infer them from the repo URL). # (Sveltia does not infer them from the repo URL).
base_url: https://git.nech.pl base_url: https://git.nech.pl
api_root: https://git.nech.pl/api/v4 api_root: https://git.nech.pl/api/v4
# Auth: Sveltia accepts ONLY auth_type "" (default) or "pkce" — it rejects # Auth: gate (api.nech.pl/gate/v1) is the auth service — magic email-code
# implicit outright — and this 12.x-era GitLab cannot finish a PKCE # login, then a postMessage handshake hands Sveltia the pln-cms token.
# public-client token exchange. Daily login therefore rides Sveltia's # Rationale: Sveltia hardcodes Bearer (gitlab backend authScheme) and this
# "Sign In with Token" (pln-cms personal access token, api scope, # 12.x-era GitLab only accepts PRIVATE-TOKEN, so Sveltia cannot talk to
# Developer on pln/www — project-confined). The Phase 1 `gate` sidecar # git.nech.pl directly — gate's /gitlab/ proxy translates, and gate's
# (magic-link mail login, server-side confidential exchange) replaces this # authorize page implements the Sveltia handshake natively (source-verified
# entirely. app_id kept for that future. # against sveltia-cms shared/auth.js + sveltia-cms-auth outputHTML).
# auth_type intentionally omitted. # app_id kept only as history: direct GitLab OAuth (pkce) is unreachable on
# this GitLab version.
base_url: https://api.nech.pl
auth_endpoint: gate/v1/oauth/authorize
api_root: https://api.nech.pl/gate/v1/gitlab
# Paste the OAuth application ID from git.nech.pl (Admin area -> Applications; # Paste the OAuth application ID from git.nech.pl (Admin area -> Applications;
# redirect URI https://me.nech.pl/admin/, "Confidential" unchecked, api scope). # redirect URI https://me.nech.pl/admin/, "Confidential" unchecked, api scope).
app_id: d8696dc65c5f2308ce16f3a0ddbcfb913915562917ad4647cfaa3ea843dee287 app_id: d8696dc65c5f2308ce16f3a0ddbcfb913915562917ad4647cfaa3ea843dee287
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment