You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@axis.apache.org by "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org> on 2005/02/25 14:07:48 UTC

[jira] Created: (AXISCPP-484) Support Basic Authentication with HTTP headers

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
 Assigned to: 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


[jira] Commented: (AXISCPP-484) Support Basic Authentication with HTTP headers

Posted by "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-484?page=comments#action_59762 ]
     
Samisa Abeysinghe commented on AXISCPP-484:
-------------------------------------------

Initial implementation done.

Need to test.

> 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


[jira] Commented: (AXISCPP-484) Support Basic Authentication with HTTP headers

Posted by "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org>.
     [ 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


[jira] Closed: (AXISCPP-484) Support Basic Authentication with HTTP headers

Posted by "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-484?page=history ]
     
Samisa Abeysinghe closed AXISCPP-484:
-------------------------------------

    Resolution: Fixed

Basic Authentication support was added to client API.

All one has to do is to call
setUsername() and setPassword() pair on Stub object

e.g. 

        InteropTestPortType ws (endpoint, APTHTTP1_1);
        ws.setUsername("tomcat");
        ws.setPassword("tomcat");

The engine will do the rest.
If at least one of username or password is set to NULL then auth header will not be set.
Calling the above API calls more than once on the API will yield undefined behaviour at the moment. (Well it will set multiple auth headers, this has to be addressed)


> 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


[jira] Commented: (AXISCPP-484) Support Basic Authentication with HTTP headers

Posted by "Samisa Abeysinghe (JIRA)" <ax...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/AXISCPP-484?page=comments#action_59847 ]
     
Samisa Abeysinghe commented on AXISCPP-484:
-------------------------------------------

Tests with Axis Java server are successful. The client is capable to deal with an Axis Java server that requires basic authentication

> 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