Return-Path: Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: (qmail 46360 invoked from network); 8 Jul 2010 09:55:35 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 8 Jul 2010 09:55:35 -0000 Received: (qmail 81078 invoked by uid 500); 8 Jul 2010 09:55:35 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 80773 invoked by uid 500); 8 Jul 2010 09:55:32 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 80765 invoked by uid 99); 8 Jul 2010 09:55:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jul 2010 09:55:31 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of lukasz.moren@gmail.com designates 74.125.82.49 as permitted sender) Received: from [74.125.82.49] (HELO mail-ww0-f49.google.com) (74.125.82.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Jul 2010 09:55:24 +0000 Received: by wwi14 with SMTP id 14so4812565wwi.6 for ; Thu, 08 Jul 2010 02:55:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=W01ksiqPxO+JDVGkHbpgAtILQxWB/SdmZpDSo14XYJw=; b=w7KRyG+ROJNBGMeF4ksn42PAIwIhNcfLLh9OI4TerEndVbVFPUrGhvGcsmNndTD2lP GS8q1jMavaW46nSxbzOOU+YbA2NJ8pLWpX/CwkT/ZjOiicNjDld6GipIOtNhFtP5oh4X U0MyTRpAAuGSFsZVy+YxAm8vyDtLiquWydy6k= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=koq+hlOshYwNrb+k/Wu0dmTwh5S8N8dPgBzfr6xVS7uFX8t4573WQJScz65nhYQTzs voepHyySNVWZEpuPlRM/MbnIZcOkv72g2kTpQEqGkk8K3Iyu2/+5gcEh+4A+mImiqcu0 y3BBmh9oCt4vF4Y+iycZWivXny+9N1o3v9pA4= MIME-Version: 1.0 Received: by 10.227.133.18 with SMTP id d18mr6317473wbt.178.1278582895430; Thu, 08 Jul 2010 02:54:55 -0700 (PDT) Received: by 10.216.3.4 with HTTP; Thu, 8 Jul 2010 02:54:55 -0700 (PDT) Date: Thu, 8 Jul 2010 10:54:55 +0100 Message-ID: Subject: OAuth authorization endpoint - conditional redirect From: =?ISO-8859-2?B?o3VrYXN6IE1vcmXx?= To: dev@cxf.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi, When user makes request to authorization endpoint i.e: https://photos.example.net/authorize?oauth_token=hh5s93j4hdidpola I have to check whether oauth_token is valid. If so redirect to user's sign in page, if not redirect to some error page. So far I use RequestDispatcherProvider, but I am stuck a bit, hot to perform a conditional redirection (i.e. depends on object passed to MessageBodyWriter). I haven't found any easy way to do that. I can write custom RequestDispatcherProvider based on existing one, but maybe there is easier way? Thanks for help. Cheers, Lukasz