[ 
http://issues.apache.org/jira/browse/AXISCPP-484?page=comments#action_59849 ]
     
Samisa Abeysinghe commented on AXISCPP-484:
-------------------------------------------

Here is how to make Axis Java to use basic Authentication...

Edit the web.xml file of Axis Java and add:

<security-constraint>
    <web-resource-collection>
      <web-resource-name>The Entire Web Application</web-resource-name>
      <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <auth-constraint>
      <role-name>tomcat</role-name>
    </auth-constraint>
  </security-constraint>

  <login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>Tomcat Supported Realm</realm-name>
  </login-config>

  <security-role>
    <description>
      An example role defined in "conf/tomcat-users.xml"
    </description>
    <role-name>tomcat</role-name>
  </security-role>


Any of the username password paires defined in conf/tomcat-users.xml with the 
role tomcat would work with the above configuration.



> Support Basic Authentication with HTTP headers
> ----------------------------------------------
>
>          Key: AXISCPP-484
>          URL: http://issues.apache.org/jira/browse/AXISCPP-484
>      Project: Axis-C++
>         Type: Improvement
>   Components: Client - Engine
>     Reporter: Samisa Abeysinghe
>     Assignee: Samisa Abeysinghe
>      Fix For: 1.5 Final

>
> Support the following:
> Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
> Where the syntax is:
>        basic-credentials = "Basic" SP basic-cookie
>        basic-cookie      = <base64 [5] encoding of userid-password,
>                             except not limited to 76 char/line>
>        userid-password   = [ token ] ":" *TEXT

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to