<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Oct 21, 2015 at 6:26 AM, Dave McCowan (dmccowan) <span dir="ltr"><<a href="mailto:dmccowan@cisco.com" target="_blank">dmccowan@cisco.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>Hi Arif--</div>
<div>    Are you using Keystone for authentication?</div>
<div>    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:<em>$TOKEN</em>".</div>
<div>    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.</div></div></blockquote><div><br></div><div>++ 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.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div>--Dave</div>
<div><br>
</div>
<span>
<div style="font-family:Calibri;font-size:11pt;text-align:left;color:black;BORDER-BOTTOM:medium none;BORDER-LEFT:medium none;PADDING-BOTTOM:0in;PADDING-LEFT:0in;PADDING-RIGHT:0in;BORDER-TOP:#b5c4df 1pt solid;BORDER-RIGHT:medium none;PADDING-TOP:3pt">
<span style="font-weight:bold">From: </span>OpenStack Mailing List Archive <<a href="mailto:corpqa@gmail.com" target="_blank">corpqa@gmail.com</a>><br>
<span style="font-weight:bold">Reply-To: </span>"<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>" <<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, October 21, 2015 at 3:11 AM<br>
<span style="font-weight:bold">To: </span>"<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>" <<a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a>><br>
<span style="font-weight:bold">Subject: </span>[openstack-dev] openstack-barbican-authenticate-keystone-barbican-command<br>
</div><div><div class="h5">
<div><br>
</div>
<div>
<div>Link: <a href="https://openstack.nimeyo.com/62868/?show=62868#q62868" target="_blank">https://openstack.nimeyo.com/62868/?show=62868#q62868</a><br>
From: marif82 <<a href="mailto:marif82@gmail.com" target="_blank">marif82@gmail.com</a>><br>
<br>
<p>Hi Asha,</p>
<p>I am also getting the same error when I am executing the curl command to create secret.
</p>
<p>bash-4.2$ curl -X POST -H 'content-type:application/json' -H 'X-Project-Id:12345' -d '{"payload": "my-secret-here","payload<em>content</em>type": "text/plain"}'
<a rel="nofollow" href="http://localhost:9311/v1/secrets" target="_blank">http://localhost:9311/v1/secrets</a><br>
Authentication requiredbash-4.2$</p>
<p>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.</p>
<p>Please help me to resolve this issue.</p>
<p>Thanks & Regards,<br>
Arif</p>
</div>
</div>
</div></div></span>
</div>

<br>__________________________________________________________________________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" rel="noreferrer" target="_blank">OpenStack-dev-request@lists.openstack.org?subject:unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br></div></div>