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
This commit is contained in:
2026-10-28 14:33:11 +01:00
parent 63d05e8acb
commit 9e29d6ff9b

View File

@@ -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
}