Return-Path: X-Original-To: apmail-shiro-user-archive@www.apache.org Delivered-To: apmail-shiro-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8E2D6BF54 for ; Mon, 16 Jan 2012 16:16:19 +0000 (UTC) Received: (qmail 19216 invoked by uid 500); 16 Jan 2012 16:16:19 -0000 Delivered-To: apmail-shiro-user-archive@shiro.apache.org Received: (qmail 19113 invoked by uid 500); 16 Jan 2012 16:16:18 -0000 Mailing-List: contact user-help@shiro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@shiro.apache.org Delivered-To: mailing list user@shiro.apache.org Received: (qmail 19105 invoked by uid 99); 16 Jan 2012 16:16:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2012 16:16:17 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 209.85.160.173 is neither permitted nor denied by domain of bcarr@spredfast.com) Received: from [209.85.160.173] (HELO mail-gy0-f173.google.com) (209.85.160.173) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Jan 2012 16:16:10 +0000 Received: by ghbg20 with SMTP id g20so539286ghb.32 for ; Mon, 16 Jan 2012 08:15:49 -0800 (PST) Received: by 10.236.131.79 with SMTP id l55mr17428265yhi.76.1326730549247; Mon, 16 Jan 2012 08:15:49 -0800 (PST) Received: from [192.168.1.196] (rrcs-71-42-183-254.sw.biz.rr.com. [71.42.183.254]) by mx.google.com with ESMTPS id q40sm51144704anh.18.2012.01.16.08.15.48 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 Jan 2012 08:15:48 -0800 (PST) From: "Brian M. Carr" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: @RequiresRoles interception on class Date: Mon, 16 Jan 2012 10:15:47 -0600 Message-Id: To: user@shiro.apache.org Mime-Version: 1.0 (Apple Message framework v1251.1) X-Mailer: Apple Mail (2.1251.1) Hello all, I'm working with Shiro 1.1.0 and have a project with a custom realm. = When I add a @RequiresRoles("admin") annotation to a method in a = controller, Shiro correctly intercepts the request, and throws an = expected AuthorizationEception. However, when I move the annotation up = to the class level, users lacking the "admin" role are granted access = without an exception. The @RequiresRoles annotation has TYPE in it's target, so I was = expecting this to work. Is this functionality currently available? If = it is available, is there additional configuration necessary to cause = Shiro to intercept all method calls in a class beyond what is needed to = intercept annotated methods? Thank you, --b