From Thursday, July, 9, 3:00 PM Pacific,
our Community site will be in
read-only mode
through Sunday, July 12th.
Thank you for your patience.

Protect SOAP web services with HTTP Basic Authentication

Highlighted
One Star

Protect SOAP web services with HTTP Basic Authentication

Hi,
I want to expose SOAP web services protecting them by HTTP Basic Authentication.
I thing I should configure the container (Apache Karaf) to use Basic Authentication.
Am I right ?
Where can I find any guide, tutorial or document to help me to do that ?
Thanks
Highlighted
Employee

Re: Protect SOAP web services with HTTP Basic Authentication

Hi,
You can find security authentication from CXF docs.
http://cxf.apache.org/docs/security.html#Security-Authentication
and if you want to use karaf jaas, try to configue the contextName as karaf

<property name="contextName" value="karaf" />

HTH
Highlighted
One Star

Re: Protect SOAP web services with HTTP Basic Authentication

Not sure that's a good way, but you can also extract authentication header inside your job
Just get the "Authorization" header and compare the result with a known string (or you can decode the string in order to test login/password on a remote system, like ldap bind ...)
Basic authentication is just a base64 encoded string
Basic bG9naW46cGFzc3dvcmQ=

=>
Basic login:password

This is how I test authentication with rest queries

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read