On Wed, Oct 21, 2015 at 6:26 AM, Dave McCowan (dmccowan) <dmcco...@cisco.com > wrote:
> Hi Arif-- > Are you using Keystone for authentication? > If so, you need to get an authentication token from Keystone and add > it as a header to your curl command: -H "X-Auth-Token:*$TOKEN*". > You do not need to specify the project ID (-H 'X-Project-Id:12345'). > The project ID will be based on your Keystone user's project ID. > ++ To add to that, X-Project-Id is provided to Barbican by keystonemiddleware.auth_token (along with the rest of your authorization context) after your X-Auth-Token is authenticated. If you're not using keystonemiddleware.auth_token, you could specify X-Project-Id yourself, and Barbican would blindly trust you. > --Dave > > From: OpenStack Mailing List Archive <cor...@gmail.com> > Reply-To: "openstack-dev@lists.openstack.org" < > openstack-dev@lists.openstack.org> > Date: Wednesday, October 21, 2015 at 3:11 AM > To: "openstack-dev@lists.openstack.org" <openstack-dev@lists.openstack.org > > > Subject: [openstack-dev] > openstack-barbican-authenticate-keystone-barbican-command > > Link: https://openstack.nimeyo.com/62868/?show=62868#q62868 > From: marif82 <mari...@gmail.com> > > Hi Asha, > > I am also getting the same error when I am executing the curl command to > create secret. > > bash-4.2$ curl -X POST -H 'content-type:application/json' -H > 'X-Project-Id:12345' -d '{"payload": "my-secret-here","payload*content*type": > "text/plain"}' http://localhost:9311/v1/secrets > Authentication requiredbash-4.2$ > > Can you please help me how you have solved this problem. I am using the > safenet HSM for MKEK and HMAC and it generated successfully on HSM > partition. > > Please help me to resolve this issue. > > Thanks & Regards, > Arif > > __________________________________________________________________________ > OpenStack Development Mailing List (not for usage questions) > Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe > http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev > >
__________________________________________________________________________ OpenStack Development Mailing List (not for usage questions) Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev