Annotation Interface IsAuthorizedSubscriptionUserOrAdmin
@Target(METHOD)
@Retention(RUNTIME)
@PreAuthorize("hasRole(\'TRUSTED_CLIENT\') OR @userValidator.isAuthorizedSubscriptionUser(authentication, #id)")
public @interface IsAuthorizedSubscriptionUserOrAdmin
Annotation for securing rest endpoints.
Only Client having role TRUSTED_CLIENT or current user having OWNER or BENEFICIARY access to the subscription is able to consume the endpoint.
Only Client having role TRUSTED_CLIENT or current user having OWNER or BENEFICIARY access to the subscription is able to consume the endpoint.
- Since:
- 2102