Re: Camel 3.0.1 Jetty HTTP Basic Authentication - configuration in a route following the doc doesn't work

2020-04-05 Thread Gerald Kallas
I was changing my DSL as following http://www.osgi.org/xmlns/blueprint/v1.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 https://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd"; xmlns:ext="htt

Re: Camel 3.0.1 Jetty HTTP Basic Authentication - configuration in a route following the doc doesn't work

2020-04-05 Thread Gerald Kallas
Hi JB, I'm using Karaf 4.2.7 w/ Camel 3.0.1 Best Gerald > Jean-Baptiste Onofre hat am 5. April 2020 06:58 > geschrieben: > > > Hi > > I guess the documentation is not aligned with jetty version actually used. > You are using Karaf 4.2.8 ? > > Camel jetty feature uses the jetty version pr

Re: Camel 3.0.1 Jetty HTTP Basic Authentication - configuration in a route following the doc doesn't work

2020-04-04 Thread Jean-Baptiste Onofre
Hi I guess the documentation is not aligned with jetty version actually used. You are using Karaf 4.2.8 ? Camel jetty feature uses the jetty version provided by pax-web/karaf, so the documentation is not maybe correct for 9.4.22/27. Regards JB > Le 4 avr. 2020 à 10:08, Gerald Kallas a écrit

Re: Camel 3.0.1 Jetty HTTP Basic Authentication - configuration in a route following the doc doesn't work

2020-04-04 Thread Reji Mathews
You just need to install corresponding osgi bundle which has the missing dependency into the karaf Just Google around for that particular osgi dependency. You can use command "osgi:install " Btw, this question should be posted on forums for fuse or service mix Cheers Reji On Sat, 4 Apr 2020,

Camel 3.0.1 Jetty HTTP Basic Authentication - configuration in a route following the doc doesn't work

2020-04-04 Thread Gerald Kallas
Dear community, I've configured a route as following snippet (following the documentation https://camel.apache.org/components/latest/jetty-component.html) http://www.osgi.org/xmlns/blueprint/v1.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http:

Re: HTTP Basic Authentication

2015-10-01 Thread Joakim Bjørnstad
;Authorization", "Basic " + encoded); > > How can i do this with Camel Route ? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/HTTP-Basic-Authentication-tp5742229p5772150.html > Sent from the Camel - Users mailing list archive at Nabble.com. > -- Kind regards Joakim Bjørnstad

Re: HTTP Basic Authentication

2015-10-01 Thread zied123456
getEncoder().encodeToString(authBytes); and i set it in the header like this: con.setRequestProperty("Authorization", "Basic " + encoded); How can i do this with Camel Route ? -- View this message in context: http://camel.465427.n5.nabble.com/HTTP-Basic-Authentication-tp5742229p57

Re: HTTP Basic Authentication

2014-10-29 Thread Willem Jiang
authenticationPreemptive=true%26bridgeEndpoint=true%26throwExceptionOnFailure=false" > > > > === > I get a 401 ERROR when I use "camel-http" > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/HTTP-Basic-Authentication-tp5742229p5758314.html > > Sent from the Camel - Users mailing list archive at Nabble.com. >

Re: HTTP Basic Authentication

2014-10-29 Thread sharathbabuk
"camel-http" ?? == here is my camel XML DSL == POST application/json http://camel.465427.n5.nabble.com/HTT

Re: HTTP Basic Authentication

2014-09-11 Thread Willem Jiang
> Cann't we make it for CXF-REST? > > Thanks, > Sayed > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/HTTP-Basic-Authentication-tp5742229p5756392.html > > Sent from the Camel - Users mailing list archive at Nabble.com. >

Re: HTTP Basic Authentication

2014-09-11 Thread sayed_india
Hello, Sorry I was referring to the Java Interceptor code above mentioned which works fine for CXF SOAP. Cann't we make it for CXF-REST? Thanks, Sayed -- View this message in context: http://camel.465427.n5.nabble.com/HTTP-Basic-Authentication-tp5742229p5756392.html Sent from the

Re: HTTP Basic Authentication

2014-09-11 Thread sayed_india
Hello, Thanks a lot for the response.Will try and let you know. please share a sample code snippet. However the same code works for me at server side for CXF-SOAP so why not for CXF-REST ? Regards, Sayed -- View this message in context: http://camel.465427.n5.nabble.com/HTTP-Basic

Re: HTTP Basic Authentication

2014-09-08 Thread Willem Jiang
The configuration only work for the client side, if you want to enable the HTTP Basic Authentication on the server side, you need to setup the Jetty  ServletContextHandler for it. -- Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com (English) http

Re: HTTP Basic Authentication

2014-09-08 Thread sayed_india
myCxfEp.configureProperties(properties); from(myCxfEp) ... I have tested it using SOAPUI doesn't ask for any authentication. Please suggest .. Thanks, Sayed -- View this message in context: http://camel.465427.n5.nabble.com/HTTP-Basic-Authentication-tp5742229p5756208.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: HTTP Basic Authentication

2014-09-07 Thread sayed_india
"/> Java End Point: from("cxfrs:http://0.0.0.0:9090?resourceClasses=com.test.Service&bindingStyle=SimpleConsumer";).. Need a quick solution. Thanks and Regards, Sayed -- View this message in context: http://camel.465427.n5.nabble.com/HTTP-Basic-Authentication-tp5742229p5756

Re: HTTP Basic Authentication

2014-09-06 Thread sayed_india
tion in thread "main" com.sun.xml.internal.ws.model.RuntimeModelerException: A WebService annotation is not present on class: in.ns.com.EmployeeDetailsPort Thanks and regards, Sayed -- View this message in context: http://camel.465427.n5.nabble.com/HTTP-Basic-A

Re: HTTP Basic Authentication

2013-10-29 Thread Willem jiang
; View this message in context: > http://camel.465427.n5.nabble.com/HTTP-Basic-Authentication-tp5742229p5742348.html > Sent from the Camel - Users mailing list archive at Nabble.com > (http://Nabble.com).

RE: HTTP Basic Authentication

2013-10-29 Thread alexey-s
View this message in context: http://camel.465427.n5.nabble.com/HTTP-Basic-Authentication-tp5742229p5742354.html Sent from the Camel - Users mailing list archive at Nabble.com.

RE: HTTP Basic Authentication

2013-10-29 Thread Ziemer, Tom
les/client/ClientPreemptiveBasicAuthentication.java) Regards, Tom -Original Message- From: alexey-s [mailto:alex...@mail.ru] Sent: Dienstag, 29. Oktober 2013 11:47 To: users@camel.apache.org Subject: Re: HTTP Basic Authentication You'll be surprised. CXF uses the same library Apache HttpCompone

Re: HTTP Basic Authentication

2013-10-29 Thread alexey-s
this message in context: http://camel.465427.n5.nabble.com/HTTP-Basic-Authentication-tp5742229p5742348.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: HTTP Basic Authentication

2013-10-29 Thread Willem jiang
I just captured the http request and response and found some thing interesting. When camel-http send the request to back end server which is protected with HTTP Basic Authentication, HttpClient sends a request without Authentication inform first, then it sends the request with the

Re: HTTP Basic Authentication

2013-10-29 Thread Willem jiang
I did a quick test with the camel trunk ( I think it’s same with last camel release 2.12.1), the HTTP Basic Authentication setting is work out of box. from("direct:endpoint").to("http://localhost:8081?authMethod=Basic&authUsername=user1&authPassword=pwd”); I think y

Re: HTTP Basic Authentication

2013-10-28 Thread martin11
with statusCode: 401 -- View this message in context: http://camel.465427.n5.nabble.com/HTTP-Basic-Authentication-tp5742229p5742320.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: HTTP Basic Authentication

2013-10-26 Thread Christian Müller
; *import org.apache.cxf.transport.Conduit;* > *import org.apache.cxf.ws.addressing.EndpointReferenceType;* > *import org.apache.log4j.Logger;* > *import org.springframework.beans.factory.annotation.Required;* > * > * > */*** > * * CXF Interceptor that provides HTTP Basic Authentication validation.* > * * * >

Re: HTTP Basic Authentication

2013-10-25 Thread contactreji
org.apache.cxf.message.Message;* *import org.apache.cxf.transport.Conduit;* *import org.apache.cxf.ws.addressing.EndpointReferenceType;* *import org.apache.log4j.Logger;* *import org.springframework.beans.factory.annotation.Required;* * * */*** * * CXF Interceptor that provides HTTP Basic Authentication validation

HTTP Basic Authentication

2013-10-25 Thread martin11
wsman What is the correct configuration for http basic authentication? Thanks for any advice. -- View this message in context: http://camel.465427.n5.nabble.com/HTTP-Basic-Authentication-tp5742229.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: camel-cxf and HTTP BASIC authentication

2013-09-10 Thread Christian Müller
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line > 39 in XML document from URL > [bundle://324.0:0/META-INF/spring/camel-cxf.xml] > is invalid; nested exception is org.xml.sax.SAXParseException: > cvc-datatype-valid.1.2.3: > '{http://es0sreao:8181/mes/bw/MES

Re: camel-cxf and HTTP BASIC authentication

2013-09-04 Thread contactreji
itions(XmlBeanDefinitionReader.java:396)[105:org.springframework.beans:3.0.7.RELEASE] at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)[105:org.springframework.beans:3.0.7.RELEASE] * Could you please let me know what is the exact value to be entered for -- View thi

Re: camel-cxf and HTTP BASIC authentication

2013-09-04 Thread contactreji
Hi Christain.. Could you please guide us with the details of dependencies added. Would be really helpful fi you could post the copy of your POM file. Reji -- View this message in context: http://camel.465427.n5.nabble.com/camel-cxf-and-HTTP-BASIC-authentication-tp5716163p5738715.html Sent from

Re: camel-cxf and HTTP BASIC authentication

2013-09-03 Thread Christian Müller
Camel: https://www.apache.org/foundation/ > Apache Member: https://www.apache.org/foundation/members.html > > https://www.linkedin.com/pub/christian-mueller/11/551/642 > > > On Tue, Aug 27, 2013 at 9:00 PM, contactreji wrote: > >> Hi Christian.. did you get a work around the p

Re: camel-cxf and HTTP BASIC authentication

2013-09-02 Thread Christian Müller
/foundation/members.html https://www.linkedin.com/pub/christian-mueller/11/551/642 On Tue, Aug 27, 2013 at 9:00 PM, contactreji wrote: > Hi Christian.. did you get a work around the problem? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/cam

Re: camel-cxf and HTTP BASIC authentication

2013-08-27 Thread contactreji
Hi Christian.. did you get a work around the problem? -- View this message in context: http://camel.465427.n5.nabble.com/camel-cxf-and-HTTP-BASIC-authentication-tp5716163p5738071.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: HTTP Basic Authentication

2013-03-22 Thread cgsk
Thanks for the reply. The problem got resolved after adding httpClient.authenticationPreemptive=true -- View this message in context: http://camel.465427.n5.nabble.com/HTTP-Basic-Authentication-tp5729500p5729680.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: HTTP Basic Authentication

2013-03-20 Thread Claus Ibsen
camel http call to handle > this? > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/HTTP-Basic-Authentication-tp5729500.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen - Red Ha

Re: camel-cxf and HTTP BASIC authentication

2012-07-18 Thread Christian Müller
/docs/**client-http-transport-** >> including-ssl-support.html<http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html> >> [2] >> http://chrisdail.com/2008/03/**31/apache-cxf-with-http-basic-** >> authentication/<http://chrisdail.com/2008/03/31/ap

Re: camel-cxf and HTTP BASIC authentication

2012-07-18 Thread Willem Jiang
esn't force me to implement this. May be only a simple PasswordCallback or so... [1] http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html [2] http://chrisdail.com/2008/03/31/apache-cxf-with-http-basic-authentication/ [3] http://chrisdail.com/2008/08/13/http-basic-authentic

Re: camel-cxf and HTTP BASIC authentication

2012-07-17 Thread Daniel Kulp
e.org/docs/client-http-transport-including-ssl-support.htm > l [2] > http://chrisdail.com/2008/03/31/apache-cxf-with-http-basic-authentication/ > [3] > http://chrisdail.com/2008/08/13/http-basic-authentication-with-apache-cxf- > revisited/ > > Best, > Christian > >

Re: camel-cxf and HTTP BASIC authentication

2012-07-17 Thread Sergey Beryozkin
e.org/repos/asf/cxf/trunk/rt/core/src/main/java/org/apache/cxf/interceptor/security/JAASLoginInterceptor.java HTH, Sergey [1] http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html [2] http://chrisdail.com/2008/03/31/apache-cxf-with-http-basic-authentication/ [3] http://chrisdai

Re: camel-cxf and HTTP BASIC authentication

2012-07-17 Thread Christian Müller
solution in CXF or Jetty which doesn't force me to implement this. May be only a simple PasswordCallback or so... [1] http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html [2] http://chrisdail.com/2008/03/31/apache-cxf-with-http-basic-authentication/ [3] http://chrisdai

Re: camel-cxf and HTTP BASIC authentication

2012-07-17 Thread ychawla
Just re-read your message and you have a ServiceMix requirement so Tomcat and Apache HTTPD wouldn't work. I saw some blog entries that talks about an interceptor based approach that might help: http://chrisdail.com/2008/03/31/apache-cxf-with-http-basic-authentication/ http://chrisdail.com

Re: camel-cxf and HTTP BASIC authentication

2012-07-17 Thread ychawla
layer as well. Thanks, Yogesh -- View this message in context: http://camel.465427.n5.nabble.com/camel-cxf-and-HTTP-BASIC-authentication-tp5716163p5716169.html Sent from the Camel - Users mailing list archive at Nabble.com.

camel-cxf and HTTP BASIC authentication

2012-07-17 Thread Christian Müller
We are in the process of migrating an existing project to Camel. One of the requirements is to support HTTP BASIC authentication. What's the (easiest) way to do this? I thought this could be done by configuring Jetty (in jetty.xml) but didn't found an example which doesn't use a

Re: HTTP basic authentication for cxf endpoint

2010-09-30 Thread Willem Jiang
ml Willem On 9/30/10 7:43 PM, xiaotao183 wrote: Hi, I am looking for a way that I could possibly inject the http basic authentication credential to cxf endpoint to invoke a remote ws which has http basic authentication enabled. Here is the

Re: HTTP basic authentication for cxf endpoint

2010-09-30 Thread Ashwin Karpe
rce.com http://fusesource.com Blog: http://opensourceknowledge.blogspot.com http://opensourceknowledge.blogspot.com - -- View this message in context: http://camel.465427.n5.nabble.com/HTTP-basic-authentication-for-cxf-endpoint-tp3046867p30470

Re: camel-http: basic authentication and query parameter "username"

2010-03-01 Thread Willem Jiang
Hi Matteo, Did you receive my reply mail and try the solution of setting the message header with the Exchange.HTTP_QUERY just like this ? from("timer://foo?fixedRate=true&delay=0&period=1") .setHeader(Exchange.HTTP_QUERY, "username=YOUR_NAME") .to("http://remoteserver.location/get_user_inf

Re: camel-http: basic authentication and query parameter "username"

2010-02-25 Thread Willem Jiang
Hi, Can you try to set the second username paramerters by setting the message header with name of Exchange.HTTP_QUERY? Willem Matteo Redaelli wrote: The problem is that I should manage 2 "username" parameters! 1)the first is a query parameter add in the remote url: it will be used to retre

Re: camel-http: basic authentication and query parameter "username"

2010-02-25 Thread Matteo Redaelli
The problem is that I should manage 2 "username" parameters! 1)the first is a query parameter add in the remote url: it will be used to retreive info about that user 2) but, for basic authentication, camel also requires a parameter with the same name "username" ... and the username for the basi

Re: camel-http: basic authentication and query parameter "username"

2010-02-24 Thread ychawla
Hi Matteo, Did you check out this link: http://camel.apache.org/http.html It has info on connecting using basic auth. This example show a poll from google that you can adapt to meet your needs. Below is polls your URL and then write the result to a file: from("timer://foo?fixedRate=true&delay

camel-http: basic authentication and query parameter "username"

2010-02-24 Thread Matteo Redaelli
Hello With camel-http I'd like to retreive an xml document from an url like http://remoteserver.location/get_user_info.xml?username=matteo BUT that url requires a basic authentication where do I have to set basic auth params (username and password) and where my query parameter "username"?? I