You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-user@axis.apache.org by Manjula Peiris <ma...@wso2.com> on 2007/08/01 13:03:24 UTC

Re: Axis2/C - USERNAME and PASSWORD

Hi Michael,

The constants AXIS2_USER_NAME and AXIS2_PASSWORD defined in
axis2_const.h are not in use. If you want Basic http Authentication you
can use Axis2/c with Apache. There is a httpd module for this .Please
see the section Deploying with Apache Http Server in the Axis2/C
mannual.
And Rampart/C also support soap message level Username and Password
support with http.

-Manjula.

On Tue, 2007-07-31 at 13:59 -0400, Michael Mole wrote:
> 
> I'm looking for more information about AXIS2_USER_NAME and
> AXIS2_PASSWORD in axis2_const.h.  What are they used for, and how are
> they used?  I'm still trying to solve my issue of using Basic http
> Authentication with my web services, and these look like they may be
> the key.  Any help is greatly appreciated. 
> 
> Thanks, 
> Mike 
> 
> Michael J Molé
> Software Engineer
> IBM Software Group - Rational
> (781)676-2710


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Re: Axis2/C - USERNAME and PASSWORD

Posted by Stefano Pettini <sp...@users.sourceforge.net>.
Dinesh Premalal wrote:

> AFAIK, it is not implemented in Axis2/C. BTW if you have any
> requirement, did you ask on mailing list or did you raise a jira for a
> new feature. (If you have already done it please point us to there we
> could work on that).
>   
Just done, AXIS2C-656. I, and Micheal I suppose, thank you all in 
advance if you could implement it as soon as you can.

Cheers,
Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Re: Axis2/C - USERNAME and PASSWORD

Posted by Dinesh Premalal <xy...@gmail.com>.
Hi Stefano,

Stefano Pettini <sp...@users.sourceforge.net> writes:
> Dear Micheal,
>
> I'll have the same problem of yours very soon, since I need HTTP basic
> authentication, but it looks like not implemented for HTTP clients. If
> I'm wrong, I strongly welcome everybody to correct me :-) and point me
> out where to specify username and password.
AFAIK, it is not implemented in Axis2/C. BTW if you have any
requirement, did you ask on mailing list or did you raise a jira for a
new feature. (If you have already done it please point us to there we
could work on that).
>
> In 1.0.0 sources, looking in http_sender.c, where the HTTP request is
> built, you can find an axis2_http_sender_util_add_header call for
> every item the clients wants to put in the HTTP request header.
>
> According to HTTP, basic authentication is implemented by a client
> using the "Authorization" header, in the following way:
>
> Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==
>
> The string "Authorization" is mapped to C constant
> AXIS2_HTTP_HEADER_AUTHORIZATION in axis2_http_transport.h, but looks
> like not used by any file, and there's no corresponding
> axis2_http_sender_util_add_header anywhere :-(
Yes, you almost there :)
> Yeah, the power of open source ... the power of reverse engineering
> :-) 
> ... the power of "looks like I'll have to implement it by myself" :-(
>
> Adding the header line looks like relatively easy, apart from the
> username and password encryption, but I don't know how integrate the
> thing in the Axis' framework correctly and in an elegant and
> consistent way.
At least you could try and send us a patch. We always welcome new
contributions. Don't worry about integrate in elegant and consistent
way. Because before committing your patch into the trunk one of the
developer will review. I'm sure that if you could understand up to
this point you could do the rest :).

I agree that we could add it quite easily, the thing is that without
any user requirements there is no point of doing it. (that is what I
believe). Until Michel talk about HTTP Basic Authentication , I didn't
see any thread relative to that subject (I might miss some of the
mails, please bear with me if I missed some). If there is a particular
Jira issue , there is a high possibility to fix it before a
release. *High possibility* means we have to do high priority things
first :)

thanks,
Dinesh
-- 
Dinesh Premalal
http://xydinesh.wordpress.com/
GPG ID : A255955C
GPG Key Finger Print : C481 E5D4 C27E DC34 9257  0229 4F44 266E A255 955C

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Re: Axis2/C - USERNAME and PASSWORD

Posted by Stefano Pettini <sp...@users.sourceforge.net>.
Dear Micheal,

I'll have the same problem of yours very soon, since I need HTTP basic 
authentication, but it looks like not implemented for HTTP clients. If 
I'm wrong, I strongly welcome everybody to correct me :-) and point me 
out where to specify username and password.

In 1.0.0 sources, looking in http_sender.c, where the HTTP request is 
built, you can find an axis2_http_sender_util_add_header call for every 
item the clients wants to put in the HTTP request header.

According to HTTP, basic authentication is implemented by a client using 
the "Authorization" header, in the following way:

Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ==

The string "Authorization" is mapped to C constant 
AXIS2_HTTP_HEADER_AUTHORIZATION in axis2_http_transport.h, but looks 
like not used by any file, and there's no corresponding 
axis2_http_sender_util_add_header anywhere :-(

Yeah, the power of open source ... the power of reverse engineering :-) 
... the power of "looks like I'll have to implement it by myself" :-(

Adding the header line looks like relatively easy, apart from the 
username and password encryption, but I don't know how integrate the 
thing in the Axis' framework correctly and in an elegant and consistent way.

Cheers,
Stefano

Michael Mole wrote:
>
> Hey Manjula,
>
> My server is already set up to use basic http authentication using 
> Axis1 (Java) and Websphere Application Server.  It's in my C client in 
> which I need to provide my credentials, but cannot seem to figure out 
> how.  Is there a way to manually add the necessary http headers to the 
> request?
>
> Thanks,
> Mike
>
> Michael J Molé
> Software Engineer
> IBM Software Group - Rational
> (781)676-2710


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org


Re: Axis2/C - USERNAME and PASSWORD

Posted by Michael Mole <mj...@us.ibm.com>.
Hey Manjula,

My server is already set up to use basic http authentication using Axis1 
(Java) and Websphere Application Server.  It's in my C client in which I 
need to provide my credentials, but cannot seem to figure out how.  Is 
there a way to manually add the necessary http headers to the request?

Thanks,
Mike

Michael J Molé
Software Engineer
IBM Software Group - Rational
(781)676-2710



Manjula Peiris <ma...@wso2.com> 
08/01/2007 07:03 AM
Please respond to
"Apache AXIS C User List" <ax...@ws.apache.org>


To
Apache AXIS C User List <ax...@ws.apache.org>
cc

Subject
Re: Axis2/C - USERNAME and PASSWORD






Hi Michael,

The constants AXIS2_USER_NAME and AXIS2_PASSWORD defined in
axis2_const.h are not in use. If you want Basic http Authentication you
can use Axis2/c with Apache. There is a httpd module for this .Please
see the section Deploying with Apache Http Server in the Axis2/C
mannual.
And Rampart/C also support soap message level Username and Password
support with http.

-Manjula.

On Tue, 2007-07-31 at 13:59 -0400, Michael Mole wrote:
> 
> I'm looking for more information about AXIS2_USER_NAME and
> AXIS2_PASSWORD in axis2_const.h.  What are they used for, and how are
> they used?  I'm still trying to solve my issue of using Basic http
> Authentication with my web services, and these look like they may be
> the key.  Any help is greatly appreciated. 
> 
> Thanks, 
> Mike 
> 
> Michael J Molé
> Software Engineer
> IBM Software Group - Rational
> (781)676-2710


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-user-help@ws.apache.org