<div dir="ltr"><div>Nick,<br><br>I think previously you got default(unscoped) token. It used to determine which tenants you have access to.<br><br></div>For more information you can visit:<br>1) <a href="http://docs.openstack.org/trunk/openstack-identity/admin/content/example-flows.html">http://docs.openstack.org/trunk/openstack-identity/admin/content/example-flows.html</a><br>
2) <a href="https://www.ibm.com/developerworks/community/blogs/e93514d3-c4f0-4aa0-8844-497f370090f5/entry/openstack_keystone_workflow_token_scoping">https://www.ibm.com/developerworks/community/blogs/e93514d3-c4f0-4aa0-8844-497f370090f5/entry/openstack_keystone_workflow_token_scoping</a><br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 21, 2013 at 8:11 AM, Nick Maslov <span dir="ltr"><<a href="mailto:azpekt@gmail.com" target="_blank">azpekt@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Thanks Ahmed, that works per-fect-ly! :)<br>
<br>
But that token that I got previously, what was the point of it? Where it is used at?<br>
<br>
Thanks,<br>
NM<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
On 08/20, Ahmed RAHAL wrote:<br>
> Hi Nick<br>
><br>
> Le 2013-08-20 10:35, Nick Maslov a écrit :<br>
> [...]<br>
><br>
> >Tokens I got from "keystone token-get" and one I got from curl -d '{"auth":{"passwordCredentials":{"username": "nik", "password": "password"}}}' -H "Content-type: application/json" <a href="http://IP:35357/v2.0/tokens" target="_blank">http://IP:35357/v2.0/tokens</a> are different. First one is much bigger (3,8Kb) than one from curl (800b).<br>

> ><br>
> >One I got from "keystone token-get" works with API calls, second one doesnt.<br>
> ><br>
><br>
> I also got surprised by this as it gets you a token in both cases.<br>
> You need to add the tenantname in your request:<br>
> curl -d '{"auth":{"tenantName": "tenantname",<br>
> "passwordCredentials":{"username": "nik", "password": "password"}}}'<br>
> -H "Content-type: application/json" <a href="http://IP:35357/v2.0/tokens" target="_blank">http://IP:35357/v2.0/tokens</a><br>
><br>
><br>
> This mainly gets you the endpoints that you need to call other APIs.<br>
><br>
> Hope this helps, as it worked for me.<br>
><br>
><br>
> --<br>
> =================================================<br>
> Ahmed Rahal <<a href="mailto:arahal@iweb.com">arahal@iweb.com</a>> / iWeb Technologies<br>
> Spécialiste de l'Architecture TI<br>
> / IT Architecture Specialist<br>
> =================================================<br>
><br>
> _______________________________________________<br>
> OpenStack-operators mailing list<br>
> <a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.openstack.org</a><br>
> <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
<br>
_______________________________________________<br>
OpenStack-operators mailing list<br>
<a href="mailto:OpenStack-operators@lists.openstack.org">OpenStack-operators@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr"><font color="#888888"><p style="margin:0px;font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px">Alexander R.<br></p><div style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px">

Technical Support Engineer</div><div style="font-family:Verdana,Arial,Helvetica,sans-serif;font-size:13px">Mirantis, Inc.</div></font></div>
</div>