From 9e29d6ff9b51ae9472d7442dec4499171a8b59ea Mon Sep 17 00:00:00 2001 From: Jakub Zych Date: Wed, 28 Oct 2026 14:33:11 +0100 Subject: [PATCH] feat(32.1-01): expose offline access on the pending consent view - PendingRequestView.OfflineAccess is the pending row's flag - IssueCode's signature is unchanged --- modules/wristband/consent.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/wristband/consent.go b/modules/wristband/consent.go index 30fdd09a..de1c6560 100644 --- a/modules/wristband/consent.go +++ b/modules/wristband/consent.go @@ -40,6 +40,9 @@ type PendingRequestView struct { RedirectHost string ScopesRequested []string // the pending row's own (already ceiling-truncated) scopes, unfiltered by mintability ExpiresAt time.Time + // OfflineAccess is the pending row's flag. offline_access is peeled out + // of Scopes at authorize and is not a scope on this view. + OfflineAccess bool } // PendingRequest resolves requestID for GET .../oauth/request/{request_id} @@ -58,6 +61,7 @@ func (s *Server) PendingRequest(ctx context.Context, requestID string, userID ui RedirectHost: host, ScopesRequested: pending.Scopes, ExpiresAt: pending.ExpiresAt, + OfflineAccess: pending.OfflineAccess, }, nil }