Commit 7c86ac75 by PLN (Algolia)

admin: implicit grant auth — this GitLab can't finish a PKCE public-client exchange

parent 51846f18
...@@ -9,10 +9,13 @@ backend: ...@@ -9,10 +9,13 @@ 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
# PKCE: no client secret anywhere. If this GitLab version rejects PKCE, # Auth: this GitLab (12.x-era) accepts the PKCE authorize step but fails the
# fall back to implicit grant — add `auth_type: implicit` and keep the same # public-client token exchange ("failed to request an access token") — so we
# app_id (the OAuth app must then allow the implicit grant flow). # ride the implicit grant instead. The OAuth app must have "Implicit grant"
auth_type: pkce # checked; "Confidential" stays unchecked. Token is short-lived (GitLab
# default ~2h) — re-login expected; the Phase 1 auth sidecar replaces this
# with a confidential exchange + refresh.
auth_type: implicit
# 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