cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Diarmuid Power (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CXF-5227) OAuthRequestFilter should respond with a 401 exception when no token is supplied.
Date Fri, 23 Aug 2013 09:29:54 GMT

    [ https://issues.apache.org/jira/browse/CXF-5227?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13748420#comment-13748420
] 

Diarmuid Power edited comment on CXF-5227 at 8/23/13 9:29 AM:
--------------------------------------------------------------

My apologies, you are correct. I should have researched this one more deeply.

Closing this issue as invalid.
                
      was (Author: diarmuid.power):
    My apologies, you are correct.

Closing this issue as invalid.
                  
> OAuthRequestFilter should respond with a 401 exception when no token is supplied.
> ---------------------------------------------------------------------------------
>
>                 Key: CXF-5227
>                 URL: https://issues.apache.org/jira/browse/CXF-5227
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS Security
>    Affects Versions: 2.7.6
>            Reporter: Diarmuid Power
>            Priority: Minor
>
> The OAuthRequestFilter, encounters an unhandled exception when no oAuth token is provided.
The following line of code throws a _javax.ws.rs.NotAuthorizedException_
> {code}
> AccessTokenValidation accessTokenV = getAccessTokenValidation();
> {code}
> org.apache.cxf.rs.security.oauth2.filters.OAuthRequestFilter.filter()
> I think that the filter should instead catch this exception and then rethrow an exception
that will yield an appropriate error code such as
> {code}
> throw new WebApplicationException( 401 );
> {code}

--
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

Mime
View raw message