Maven + Apache Felix + CXF: Securing a Service with HTTP Basic Authentication
This is another post in series Maven + Apache Felix + CXF + DOSGi Series. Here I will describe how to secure CXF published web services with HTTP basic authentication. You can find the sources on my GitHub account.
We will have three projects here. The first one defines an interface for a service. Another one provides implementation for it. And the third one will provide security.
dosgiSecurity
dosgiSecurity-api
dosgiSecurity-impl
dosgiSecurity-security
dosgiSecurity will be just a holder project.
Our interface HelloService in bundle dosgiSecurity-api will be similar to the one we defined in
Nginx Basic Authentication on Windows
Nginx supports only plain passwords file without any encryption on Windows! Totaly crazy! That means, intead of:
mah:6hpon1QBxl45M
One has to have plain password:
mah:secret
Basic Authentication in GlassFish 3
Here is asmall basic authentication how-to for a web application in GlassFish 3.
Open GlassFish Administrative Console. Go to