Uploaded image for project: 'Apache Oltu'
  1. Apache Oltu
  2. OLTU-198

Multiple parameter styles result in exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • oauth2-resourceserver

    Description

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

      Attachments

        Activity

          People

            Unassigned Unassigned
            pnehrer Peter Nehrer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: