Uploaded image for project: 'AeroGear'
  1. AeroGear
  2. AEROGEAR-1236

HTTP Basic authentication broken

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 1.1.0
    • 1.0.0
    • controller , security
    • None

    Description

      Trying out the HTTP Basic support in our controller demo (master), I can't get it to work. I am getting 401 errors

      Steps to reproduce

      • Cloned the REPO
      • build (mvn clean install) it
      • deployed to JBoss AS
      • Tried the suggestion from the README:
        curl --basic -b cookies.txt -c cookies.txt -u john:123 "http://localhost:8080/aerogear-controller-demo/autobots" -v
        

      But I am getting the following 401 response:

      * About to connect() to localhost port 8080 (#0)
      *   Trying 127.0.0.1...
      * connected
      * Connected to localhost (127.0.0.1) port 8080 (#0)
      * Server auth using Basic with user 'john'
      > GET /aerogear-controller-demo/autobots HTTP/1.1
      > Authorization: Basic am9objoxMjM=
      > User-Agent: curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8r zlib/1.2.5
      > Host: localhost:8080
      > Accept: */*
      > Cookie: JSESSIONID=l+LIDoGZaLIIZrxgwwqC8dmS.undefined
      > 
      < HTTP/1.1 401 Unauthorized
      < Server: Apache-Coyote/1.1
      < WWW-Authenticate: Digest realm="default",domain="/aerogear-controller-demo",nonce="MTM2OTIwNDk0ODQ1ODo1ODJiYjRlNS04NjNhLTQzZWMtYTE1ZS04MDE2YzM0NWY3NGU=",algorithm=MD5,qop=auth,stale="false"
      < Content-Type: text/html;charset=utf-8
      < Content-Length: 958
      < Date: Wed, 22 May 2013 06:42:28 GMT
      < 
      * Connection #0 to host localhost left intact
      <html><head><title>JBoss Web/7.0.13.Final - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 401 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>This request requires HTTP authentication ().</u></p><HR size="1" noshade="noshade"><h3>JBoss Web/7.0.13.Final</h3></body></html>* Closing connection #0
      

      Attachments

        Activity

          People

            cvasilak_jira Christos Vasilakis (Inactive)
            mwessend@redhat.com Matthias Wessendorf
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: