Is Swift basic Authentication not supported in OpenStack4j?​

asked 2016-03-13 23:03:13 -0500

rmagarwal gravatar image

I have ​created a local SWIFT setup and able to connect to it using CURL request as below:

curl -v -H 'X-Storage-User: test:tester' -H 'X-Storage-Pass: testing'

But when I am trying to connect to the same SWIFT with OpenStack4j using Java code, I am getting following exception:

Java Code:

OSClient os = OSFactory.builder()


Exception in thread "main" ClientResponseException{message=Bad Request, status=400, status-code=BAD_REQUEST}
at     org.openstack4j.core.transport.HttpExceptionHandler.mapException(
at org.openstack4j.core.transport.HttpExceptionHandler.mapException(
at org.openstack4j.openstack.internal.OSAuthenticator.authenticateV2(
at org.openstack4j.openstack.internal.OSAuthenticator.invoke(
at org.openstack4j.openstack.client.OSClientBuilder$ClientV2.authenticate(
at org.openstack4j.openstack.client.OSClientBuilder$ClientV2.authenticate(
at Connection.main(

Maven: org.pacesys openstack4j 2.0.9

​Is basic Authentication not supported in OpenStack4j?​

edit retag flag offensive close merge delete