oltu-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Nehrer (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OLTU-198) Multiple parameter styles result in exception
Date Tue, 03 May 2016 18:55:12 GMT
Peter Nehrer created OLTU-198:

             Summary: Multiple parameter styles result in exception
                 Key: OLTU-198
                 URL: https://issues.apache.org/jira/browse/OLTU-198
             Project: Apache Oltu
          Issue Type: Bug
          Components: oauth2-resourceserver
            Reporter: Peter Nehrer

When multiple parameter styles are used with OAuthAccessResourceRequest, an exception is thrown
in validate() method (called from constructor). E.g.,

new OAuthAccessResourceRequest(req, ParameterStyle.HEADER, ParameterStyle.QUERY, ParameterStyle.BODY);

When validating request against each parameter style, the exception should only be thrown
when no style successfully validated. E.g., in the above scenario, passing "Authorization:
Bearer foo" still results in exception because there's no query string param and content type
is wrong (which doesn't matter because we have the token in header).

This message was sent by Atlassian JIRA

View raw message