<div dir="ltr"><div><div><div>Hi,<br><br></div>A token issue is done with a POST request not a GET request, so the request should be:<br><br></div> curl -X POST ...<br><br></div><div>and Keystone requires perhaps Accept header.<br></div><div><br></div>Cédric/ZZelle<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 25, 2016 at 3:19 AM, Kenny Ji-work <span dir="ltr"><<a href="mailto:jenkins-sdg@qq.com" target="_blank">jenkins-sdg@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi all,</div><div><br></div><div>In the mitaka version, I used v2 RESTful API of keystone as following:</div><div><div>curl -i -H "Content-Type: application/json" -d '</div><div>{ "auth": {</div><div> "tenantName": "admin",</div><div> "passwordCredentials": {</div><div> "username": "admin",</div><div> "password": "password"</div><div> }</div><div>}</div><div>}' <a href="http://10.240.227.7:35357/v2.0/tokens" target="_blank">http://10.240.227.7:35357/v2.0/tokens</a> ; echo</div></div><div><br></div><div>But the result shows: {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}. But the v3 of keystone works normaly.</div><div>Is v2 of keystone not supported in mitaka or something else config I config wrong?</div><div><br></div><div>Sincerely!</div><span class="HOEnZb"><font color="#888888"><div>Kenny Ji</div></font></span><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>