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:
@@ -40,6 +40,9 @@ type PendingRequestView struct {
|
|||||||
RedirectHost string
|
RedirectHost string
|
||||||
ScopesRequested []string // the pending row's own (already ceiling-truncated) scopes, unfiltered by mintability
|
ScopesRequested []string // the pending row's own (already ceiling-truncated) scopes, unfiltered by mintability
|
||||||
ExpiresAt time.Time
|
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}
|
// 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,
|
RedirectHost: host,
|
||||||
ScopesRequested: pending.Scopes,
|
ScopesRequested: pending.Scopes,
|
||||||
ExpiresAt: pending.ExpiresAt,
|
ExpiresAt: pending.ExpiresAt,
|
||||||
|
OfflineAccess: pending.OfflineAccess,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user