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.
HelloService in bundle
dosgiSecurity-api will be similar to the one we defined in
Nginx supports only plain passwords file without any encryption on Windows! Totaly crazy! That means, intead of:
One has to have plain password:
Here is asmall basic authentication how-to for a web application in GlassFish 3.
Open GlassFish Administrative Console. Go to