Repository navigation
v0.20.2
Tags: root module v0.20.2 only; mcpauth, forfait and directory unchanged. No
behaviour change, no migration, no route, CSRF or pg.Schema change.
Tests
- The CLI code exchange, the device exchange and the mobile (PKCE) exchange are now asserted to
return a plain session token, never one behindporte.BrowserTokenPrefix(b~). Before,
onlyIssueFor's own tests pinned it, so an exchange handler switched toIssueCookieFor
would have handed a CLI a token that passesmcpauth.RequireOwnSessionas a cookie, with
every test green.
Known limits
- A CLI session can still obtain a browser token when local login is enabled and the account
has no password.local.Kit.SetPassword(local/local.go:310) asks for no confirmation,
because the account has no current password, so the caller's session is its only evidence.
A caller holding a plain CLI, device or mobile session token can set a first password, then
calllocal.Kit.Login(local/local.go:241) with it, which mints ab~token through
IssueCookieForand returns it in the JSON body. That token passes
RequireOwnSession. This is the same class as the v0.20.0 limit (local login and magic link
return the browser token in their body), with one extra step. It is open only where an app
mounts local login and lets a session callSetPassword; a federated-only app is not
affected. Not changed in this release.
Fixed
oidc/backchannel.go: thekeyFetchFailurecomment now names the check order it relies on.
go-oidc v3.20.0'sIDTokenVerifier.VerifyrunsverifyJWT(signature,verify.go:336)
before it reads issuer, audience or expiry (verify.go:237-281), so a key-fetch failure is
reported before any claim. Comment only.