Repository navigation
Conversation
A config whose auth.oidc.scopes lists offline_access, as an item or as a word inside one, now logs config.deprecated_scope with key=auth.oidc.scopes at load. A sign-in whose token response lists offline_access in its scope logs auth.offline_access_in_sign_in just before the session is made. Both still load and sign in: this is the expand step, and a later release refuses both. Neither warning carries a token or a response body. scopeLists reads a scope string as a whitespace-separated set; the later refusal and the offline collection reuse it. The fake provider can now script the scope it answers with, and its no-token log checks cover access tokens too. The contracts entry describes the warnings, and the plan records the slice's evidence, its checkpoint review and four approved deviations.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Slice 3: Warn about offline_access in sign-in (expand)
An install whose
auth.oidc.scopes, or whose realm, putsoffline_accesson a normal sign-in still signs in, and the operator sees a warning naming the setting that will be refused.Spec: nebari-dev/tapas/docs/superpowers/specs/2026-11-30-agent-token-broker-design.md
Plan: nebari-dev/tapas/docs/superpowers/plans/2026-12-01-agent-tokens-and-frames.md (Slice 3)
Contracts touched: Platform config
auth.oidc.scopes, and the sign-in callback's answer to a token response listingoffline_access(expand)Depends on: #41
Two warnings, no refusals yet:
config.deprecated_scopewithkey=auth.oidc.scopeswhen an item ofauth.oidc.scopes, or a word inside one, isoffline_access. oauth2 joins the items with spaces into the request'sscope, so a word inside an item reaches Keycloak too.auth.offline_access_in_sign_inwhen the token response'sscopelistsoffline_access(read as a whitespace-separated set), logged after the ID token checks and just before the session is made.Neither carries a token or a response body. Slice 12 turns both into refusals.
Validation
go test -count=1 ./internal/config/... ./internal/features/authoidc/...make test-localgo vet ./...