java - Framework/lib/pattern to secure rest endpoint -
generally rest based framework provide authenticate. there framework/lib/pattern helps secure rest endpoint following capability
only authenticated user following roles can access end point particular params.
basically trying prevent 2 user(with same roles) view each other data passing each other id in request urls
yeah should @ apache shiro offers support role base/permission based authorization.
an example of how can annotate endpoint be:
@requiresroles(value = "admin")
i'd recommend check instance-level access control of document.
Comments
Post a Comment