Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[Freeswitch-users] mod_xml_curl and basic authentication


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users
View previous topic :: View next topic  
Author Message
mehdi.chaabouni at gma...
Guest





PostPosted: Sun Nov 09, 2008 9:41 pm    Post subject: [Freeswitch-users] mod_xml_curl and basic authentication Reply with quote

Hi,


I'm trying to fetch a dialplan using mod_xml_curl.
The problem is that I can't get it to work when basic authentication is enabled in my webapp.
I think that FS is not sending the Authentication in the header when making requests.

Am I missing something? Is there something else that I should set beside adding the following line to the file "xml_curl.conf.xml"
<param name="gateway-credentials" value="username:password"/>

here's my "xml_curl.conf.xml":
<configuration name="xml_curl.conf" description="cURL XML Gateway">
<bindings>
<binding name="dialplan fetcher">
<param name="gateway-url" value="http://localhost:8080/dialplan" bindings="dialplan"/>
<param name="gateway-credentials" value="root:root"/>
</binding>
</bindings>
</configuration>

Thanks
Back to top
mehdi.chaabouni at gma...
Guest





PostPosted: Mon Nov 10, 2008 12:19 pm    Post subject: [Freeswitch-users] mod_xml_curl and basic authentication Reply with quote

I've just analyzed the header of the HTTP request made by Freeswitch, there's no Authorization section like
"Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=="

it could be a bug

On Sun, Nov 9, 2008 at 8:39 PM, MEHDi CHAABOUNi <mehdi.chaabouni@gmail.com (mehdi.chaabouni@gmail.com)> wrote:
Quote:
Hi,


I'm trying to fetch a dialplan using mod_xml_curl.
The problem is that I can't get it to work when basic authentication is enabled in my webapp.
I think that FS is not sending the Authentication in the header when making requests.

Am I missing something? Is there something else that I should set beside adding the following line to the file "xml_curl.conf.xml"
<param name="gateway-credentials" value="username:password"/>

here's my "xml_curl.conf.xml":
<configuration name="xml_curl.conf" description="cURL XML Gateway">
<bindings>
<binding name="dialplan fetcher">
<param name="gateway-url" value="http://localhost:8080/dialplan" bindings="dialplan"/>
<param name="gateway-credentials" value="root:root"/>
</binding>
</bindings>
</configuration>

Thanks

Back to top
mike at jerris.com
Guest





PostPosted: Mon Nov 10, 2008 3:01 pm    Post subject: [Freeswitch-users] mod_xml_curl and basic authentication Reply with quote

How about in the response, typically the server would challenge for auth creds.

Mike

On Nov 10, 2008, at 12:17 PM, MEHDi CHAABOUNi wrote:
Quote:
I've just analyzed the header of the HTTP request made by Freeswitch, there's no Authorization section like
"Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=="

it could be a bug

On Sun, Nov 9, 2008 at 8:39 PM, MEHDi CHAABOUNi <mehdi.chaabouni@gmail.com (mehdi.chaabouni@gmail.com)> wrote:
Quote:
Hi,


I'm trying to fetch a dialplan using mod_xml_curl.
The problem is that I can't get it to work when basic authentication is enabled in my webapp.
I think that FS is not sending the Authentication in the header when making requests.

Am I missing something? Is there something else that I should set beside adding the following line to the file "xml_curl.conf.xml"
<param name="gateway-credentials" value="username:password"/>

here's my "xml_curl.conf.xml":
<configuration name="xml_curl.conf" description="cURL XML Gateway">
<bindings>
<binding name="dialplan fetcher">
<param name="gateway-url" value="http://localhost:8080/dialplan" bindings="dialplan"/>
<param name="gateway-credentials" value="root:root"/>
</binding>
</bindings>
</configuration>

Thanks




_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org
Back to top
mehdi.chaabouni at gma...
Guest





PostPosted: Mon Nov 10, 2008 3:57 pm    Post subject: [Freeswitch-users] mod_xml_curl and basic authentication Reply with quote

The problem is caused by the plugin I'm using in my webapp (GRAILS+ACEGI) which is not challenging the post with a 401 response.


On Mon, Nov 10, 2008 at 2:59 PM, Michael Jerris <mike@jerris.com (mike@jerris.com)> wrote:
Quote:
How about in the response, typically the server would challenge for auth creds.

Mike


On Nov 10, 2008, at 12:17 PM, MEHDi CHAABOUNi wrote:



Quote:

I've just analyzed the header of the HTTP request made by Freeswitch, there's no Authorization section like
"Authorization: Basic QWxhZGRpbjpvcGVuIHNlc2FtZQ=="

it could be a bug

On Sun, Nov 9, 2008 at 8:39 PM, MEHDi CHAABOUNi <mehdi.chaabouni@gmail.com (mehdi.chaabouni@gmail.com)> wrote:
Quote:
Hi,


I'm trying to fetch a dialplan using mod_xml_curl.
The problem is that I can't get it to work when basic authentication is enabled in my webapp.
I think that FS is not sending the Authentication in the header when making requests.

Am I missing something? Is there something else that I should set beside adding the following line to the file "xml_curl.conf.xml"
<param name="gateway-credentials" value="username:password"/>

here's my "xml_curl.conf.xml":
<configuration name="xml_curl.conf" description="cURL XML Gateway">
<bindings>
<binding name="dialplan fetcher">
<param name="gateway-url" value="http://localhost:8080/dialplan" bindings="dialplan"/>
<param name="gateway-credentials" value="root:root"/>
</binding>
</bindings>
</configuration>

Thanks






_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org





_______________________________________________
Freeswitch-users mailing list
Freeswitch-users@lists.freeswitch.org (Freeswitch-users@lists.freeswitch.org)
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org

Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> freeSWITCH Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services