cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CXF-4615) OAuthRequestFilter.java should ignore HTTP OPTIONS verb
Date Mon, 05 Nov 2012 22:26:12 GMT

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

Sergey Beryozkin edited comment on CXF-4615 at 11/5/12 10:25 PM:
-----------------------------------------------------------------

Hmm, should CORS filter be sitting in front of OAuthFilter and managing OPTIONS ?

http://cxf.apache.org/docs/jax-rs-cors.html
                
      was (Author: sergey_beryozkin):
    Hmm, should CORS filter be sitting in from of OAuthFilter and managing OPTIONS ?
                  
> OAuthRequestFilter.java should ignore HTTP OPTIONS verb
> -------------------------------------------------------
>
>                 Key: CXF-4615
>                 URL: https://issues.apache.org/jira/browse/CXF-4615
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS Security
>    Affects Versions: 2.6.2, 2.7.0
>            Reporter: Steven Tippetts
>            Priority: Critical
>
> In handleRequest of OAuthRequestFilter.java at line 54 something similar to the following
should be added:
> if (((String)m.get(Message.HTTP_REQUEST_METHOD)).equals("OPTIONS")) return null;
> This will skip any HTTP OPTIONS verb requests. I'm getting the OPTIONS verb request when
using an OAuth 2 javascript client.
> I haven't found a way in the configuration to specify that OPTIONS requests should skip
this filter.

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