Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 43B3AEB90 for ; Fri, 30 Nov 2012 13:09:59 +0000 (UTC) Received: (qmail 79764 invoked by uid 500); 30 Nov 2012 13:09:59 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 79626 invoked by uid 500); 30 Nov 2012 13:09:59 -0000 Mailing-List: contact issues-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 issues@cxf.apache.org Received: (qmail 79602 invoked by uid 99); 30 Nov 2012 13:09:58 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Nov 2012 13:09:58 +0000 Date: Fri, 30 Nov 2012 13:09:58 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: <1189664536.45021.1354280998625.JavaMail.jiratomcat@arcas> In-Reply-To: <470526783.40880.1354210858386.JavaMail.jiratomcat@arcas> Subject: [jira] [Resolved] (CXF-4666) [OAuth2] securityContext problem on createSubject MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-4666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Beryozkin resolved CXF-4666. ----------------------------------- Resolution: Fixed Fix Version/s: 2.7.1 2.6.4 Assignee: Sergey Beryozkin see r1415609 > [OAuth2] securityContext problem on createSubject > ------------------------------------------------- > > Key: CXF-4666 > URL: https://issues.apache.org/jira/browse/CXF-4666 > Project: CXF > Issue Type: Bug > Components: JAX-RS Security > Affects Versions: 2.7.0 > Reporter: Steven Tippetts > Assignee: Sergey Beryozkin > Fix For: 2.6.4, 2.7.1 > > > This is probably just ignorance on my part, but when I override the createSubject method in the RedirecationBasedGrantService.java file, the securityContext parameter that is passed in is of type AbstractHTTPDestination$2. This parameter contains my authentication token, but I don't know how to get at it, so I'm having to go to the SecurityContextHolder to get the context instead of just using the parameter. > I'm just using standard Spring authentication, so it seems like many other people would also have AbstractHTTPDestination$2 as the security type, which causes roles to be missed in the OAuthUtils.createSubject method. > I'm sure I missed some details so please let know your questions and thanks for your help. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira