Re: REST API - Basic Authentication?

2020-05-13 Thread Alex Soto
I found a solution. See here: http://karaf.922171.n3.nabble.com/Basic-authentication-of-WAB-using-Jaas-in-Karaf-tp4058251p4058280.html Best regards, Alex soto > On May 13, 2020,

Re: REST API - Basic Authentication?

2020-05-13 Thread Jeremy Ross
I discovered that exchange headers are used for HTTP headers. Setting a header called `Authorization` on the exchange to `Basic ` worked for me. On Tue, May 12, 2020 at 11:55 AM Alex Soto wrote: > Hello, > > I am facing the same issue, using Camel Rest DSL on top of Servlet, > Blueprint,

Re: REST API - Basic Authentication?

2020-05-12 Thread Alex Soto
Hello, I am facing the same issue, using Camel Rest DSL on top of Servlet, Blueprint, Karaf, Pax-Web, Jetty, how to add Basic authentication to the Rest endpoints? Any pointers/examples will be appreciated. Best regards, Alex soto > On Feb 4, 2020, at 3:15 AM, Gerald Kallas -

Camel Servlet based REST API - Basic Authentication?

2020-02-04 Thread Gerald Kallas
Dear community, with some help from your folks here I've created a Camel Servlet based REST API (see below). The next step will be to add HTTP Basic Authentication (filter) to protect the Servlet Endpoint (API). I did a lot of research but wasn't able to find anything that helps. So my

Re: REST API - Basic Authentication?

2020-02-04 Thread Gerald Kallas - mailbox.org
Tx JB. At the moment I decided to register a servlet to re-use the global Jetty configuration. So where I can find the filter stuff? For best practices .. 1. better to use servlet or camel-jetty? 2. one servlet for multiple APIs or one dedicated servlet for every API? Best - Gerald > Am

Re: REST API - Basic Authentication?

2020-02-03 Thread Jean-Baptiste Onofré
Hi, Not sure I follow (related to your previous message): are you using servlet registration or camel-jetty ? On camel-jetty, you can define a security handler. Using servlet, you can always register a filter. Regards JB On 03/02/2020 18:34, Gerald Kallas wrote: > Dear community, > > I've

REST API - Basic Authentication?

2020-02-03 Thread Gerald Kallas
Dear community, I've following REST API (see below). How can I add a Basic Authentication to the REST API in Blueprint DSL? Any hints are highly welcome. Best - Gerald Configuration XML .. http://www.osgi.org/xmlns/blueprint/v1.0.0;>