@Target(value={METHOD,TYPE}) @Retention(value=RUNTIME) @PreAuthorize(value="@authz.isAuthorized(#appName,principal)") public @interface AuthorizeGroup
Authz.isAuthorized(String, OneOpsUser)
with oneops
application name and the current authenticated OneOpsUser
as arguments.
appName
is the OneOps application name.
principal
is the current authenticated user, provided by spring security.
PreAuthorize
uses Spring Expression Language (SPEL)
to invoke the Authz.isAuthorized(String, OneOpsUser)
method.Copyright © 2018 Walmart, Inc.. All rights reserved.