You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, it's not great that all advisors need to be specified. Given that withDefaults prepares a default set of advisors already, it would be nice to be able to augment it instead of replace.
Note that mutability is necessary in this case since this allows a recursive nesting of advisors, important in the case of @AuthorizeReturnObject, for example.
The text was updated successfully, but these errors were encountered:
This commit had some unintended consequences when the advisor
interceptor was published in a Spring Boot application. As such,
15497 will be reopened to investigate. In the meantime, this commit
reverts the previous change so as to allow the build to pass.
Issue gh-15497
To add an advisor to
AuthorizationAdvisorProxyFactory
is simple:However, it's not great that all advisors need to be specified. Given that
withDefaults
prepares a default set of advisors already, it would be nice to be able to augment it instead of replace.For example,
addAdvisors
may be valuable like so:Another option is to expose the default advisors via a static method:
Note that mutability is necessary in this case since this allows a recursive nesting of advisors, important in the case of
@AuthorizeReturnObject
, for example.The text was updated successfully, but these errors were encountered: