Issue Type: Feature Request Feature Request
Affects Versions: 1.0.0
Assignee: Unassigned
Created: 22/May/13 2:45 AM
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
Fix Versions: 1.0.1
Project: AeroGear
Priority: Major Major
Reporter: Matthias Wessendorf
Security Level: Public (Everyone can see)
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