In the plugin's predispatch method you perform your check whether the current consumer has authenticated and has privileges for the desired action - if he doesn't, you save the requested url and either
a) modify the request object so the request will be dispatched to your login action
or
b) you redirect to the login action.
Best regards,
Andreas
没有评论:
发表评论