Annotation Interface IsAuthorizedSubscriptionBaseOwnerOrAdmin
@Target(METHOD)
@Retention(RUNTIME)
@PreAuthorize("hasRole(\'TRUSTED_CLIENT\') OR @userValidator.isSubscriptionBaseOwner(authentication, #subscriptionBaseId)")
public @interface IsAuthorizedSubscriptionBaseOwnerOrAdmin
Annotation for securing rest endpoints.
Only users that have role TRUSTED_CLIENT or users that own the subscription can retrieve data from this endpoint.
Only users that have role TRUSTED_CLIENT or users that own the subscription can retrieve data from this endpoint.
- Since:
- 2102