[openstack-dev] openstack-barbican-authenticate-keystone-barbican-command
Dolph Mathews
dolph.mathews at gmail.com
Wed Oct 21 18:56:11 UTC 2015
On Wed, Oct 21, 2015 at 6:26 AM, Dave McCowan (dmccowan) <dmccowan at 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 <corpqa at gmail.com>
> Reply-To: "openstack-dev at lists.openstack.org" <
> openstack-dev at lists.openstack.org>
> Date: Wednesday, October 21, 2015 at 3:11 AM
> To: "openstack-dev at lists.openstack.org" <openstack-dev at lists.openstack.org
> >
> Subject: [openstack-dev]
> openstack-barbican-authenticate-keystone-barbican-command
>
> Link: https://openstack.nimeyo.com/62868/?show=62868#q62868
> From: marif82 <marif82 at 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-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20151021/1a0c4169/attachment.html>
More information about the OpenStack-dev
mailing list