Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 33D2497B1 for ; Fri, 6 Apr 2012 07:12:34 +0000 (UTC) Received: (qmail 46702 invoked by uid 500); 6 Apr 2012 07:12:33 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 46543 invoked by uid 500); 6 Apr 2012 07:12:31 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 46522 invoked by uid 99); 6 Apr 2012 07:12:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Apr 2012 07:12:30 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of claus.ibsen@gmail.com designates 209.85.215.45 as permitted sender) Received: from [209.85.215.45] (HELO mail-lpp01m010-f45.google.com) (209.85.215.45) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Apr 2012 07:12:25 +0000 Received: by lahe6 with SMTP id e6so2703834lah.32 for ; Fri, 06 Apr 2012 00:12:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=AfFFaQO+czz9sXE6oJFjFf0lHJ6F3ZGv51xNVDB54jc=; b=am3NDcFVV2+xuUhjWAtMjhJTN/aDAcvBq4Qg5Ubmb9KyPYQhL44Bah/zmkZz8OV95c yOlWJm3RozL5fKt2aRBJaewCwPd1J+xeQfINfXoTmuvaTwafksBXcOtA8NExRBOqsQr0 2B0Q/H6WPm+D5BAZe5fCwiMErpLV9Tpy9FqJmsJRnWSX690012BiCkHLBL2GyacxmAI9 FupRY96XLmqTp0ryJL27EKwwg+KBqIozpvTSdNzO2gs10ZSSOkPAjy2uzmRKKeSucSB1 /4ylkC3UNsz72EAjMwlBIYVevRI2D/N3ZLF3xmFnoGgdAw9jbdv1u7Rc/kjWesYYOpYE PA9g== Received: by 10.152.110.170 with SMTP id ib10mr7443790lab.7.1333696324845; Fri, 06 Apr 2012 00:12:04 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.75.130 with HTTP; Fri, 6 Apr 2012 00:11:44 -0700 (PDT) In-Reply-To: <1333652046303-5621207.post@n5.nabble.com> References: <1330430597369-5521623.post@n5.nabble.com> <1330531577528-5525360.post@n5.nabble.com> <1330545757224-5525938.post@n5.nabble.com> <1330552825929-5526199.post@n5.nabble.com> <1330558042845-5526376.post@n5.nabble.com> <1330560286376-5526421.post@n5.nabble.com> <1333652046303-5621207.post@n5.nabble.com> From: Claus Ibsen Date: Fri, 6 Apr 2012 09:11:44 +0200 Message-ID: Subject: Re: How can Shiro be used with camel to limit access to a route? To: users@camel.apache.org Content-Type: text/plain; charset=ISO-8859-1 On Thu, Apr 5, 2012 at 8:54 PM, mgiammarco wrote: > Ok I have found the bug: > > ShiroSecurityTokenInjector creates a bytearray and puts it in the message > header. > > The bytearray do not pass through openwire... > Ah crap, yeah JMS spec have limitations on what can be transfered over JMS in JMS properties. We have some notes about this at the Camel JMS wiki page http://camel.apache.org/jms I wonder if we can always safely convert the shiro token as a String representation instead of byte[]? A string is always supported. I dont assume we need to base encode the byte array or something? The token may already be representable out of the box in a String. Maybe you could check a bit on Shiro and see about this about the token? And if possible we could maybe adjust the code in camel-shiro. > But the bytearray content is a string text with only ascii chars! So I > manually put it as an header of string type. > > -- > View this message in context: http://camel.465427.n5.nabble.com/How-can-Shiro-be-used-with-camel-to-limit-access-to-a-route-tp5521623p5621207.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- CamelOne 2012 Conference, May 15-16, 2012: http://camelone.com FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/