oltu-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Sanso (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (OLTU-198) Multiple parameter styles result in exception
Date Wed, 25 Oct 2017 13:11:00 GMT

     [ https://issues.apache.org/jira/browse/OLTU-198?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Antonio Sanso updated OLTU-198:
    Labels: review  (was: )

> 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
>              Labels: review
> When multiple parameter styles are used with OAuthAccessResourceRequest, an exception
is thrown in validate() method (called from constructor). E.g.,
> {code}
> new OAuthAccessResourceRequest(req, ParameterStyle.HEADER, ParameterStyle.QUERY, ParameterStyle.BODY);
> {code}
> 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