Warrant is a highly scalable, centralized authorization service based on Google Zanzibar. Use it to define, enforce, query, and audit application authorization and access control.
This PR updates the objecttype and warrant Service interfaces to have the write methods return a wookie token in addition to the existing return values. This allows the wookie token to optionally be returned in the response. WithNewWookie is also created as a wrapper around WithinTransaction, where a new wookie is created, a transaction is started (or continued), and the new wookie is passed to the callback function.
Describe your changes
This PR updates the
objecttype
andwarrant
Service interfaces to have the write methods return a wookie token in addition to the existing return values. This allows the wookie token to optionally be returned in the response.WithNewWookie
is also created as a wrapper aroundWithinTransaction
, where a new wookie is created, a transaction is started (or continued), and the new wookie is passed to the callback function.