<html>
<head>
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<meta content="OpenWebMail 3.00_beta4 20121104 rev 671" name="Generator">
</head>
<body>
Hi,<br />
<br />
Thanks for the reply.<br />
<br />
I've been digging and I've found way how to get token using API:<br />
curl -s -X POST http://localhost:35357/tokens -d '{"auth": {"passwordCredentials": {"username":"XXX", "password":"XXX"}, "tenantName":"XXX"}}' -H "Content-type: application/json"<br />
<br />
This request returns JSON response, that's fine for me.<br />
<br />
But how to validate the token? I'm following the API:<br />
http://docs.openstack.org/api/openstack-identity-service/2.0/content/GET_validateToken_v2.0_tokens__tokenId__Admin_API_Service_Developer_Operations-d1e1356.html<br />
<br />
and request: curl -s -X GET http://localhost:35357/tokens/XXXYYYXXX -H "X-Auth-Token: "XXXYYYXXX""<br />
return 401 (unauthorized).<br />
<br />
What I'm doing wrong?<br />
<br />
Thanks for help<br />
<br />
<br />
<b>On Wed, 6 Feb 2013 11:46:28 -0500, Tong Li wrote</b><br />
> <font face="sans-serif" size="2">keystone provides APIs for authentication, I would think you only need to develop some code in your app to call the API and parse the response, then following request will have to be verified using the token. If you app is already wsgi app, you will just need to use the keystone middleware in your pipeline. If it is other type of the application, you will just need to develop some code which deal with keystone authentication http request/response and figure out a way to verify the token.</font><br />
><br />
> <font face="sans-serif" size="2">Thanks.</font><br />
><br />
> <font face="sans-serif" size="2">Tong Li<br />
> Emerging Technologies & Standards<br />
><br />
> </font><br />
><br />
> <img alt="Inactive hide details for "pat" ---02/06/2013 10:35:26 
AM---Hi all, I have a question about keystone. I have an application (Je" border="0" height="16" src="cid:1__=0ABBF199DFC82EE68f9e8a93df938@us.ibm.com" width="16" /><font color="#424282" face="sans-serif" size="2">"pat" ---02/06/2013 10:35:26 AM---Hi all, I have a question about keystone. I have an application (Jee web one) which I</font><br />
><br />
> <font color="#5F5F5F" face="sans-serif" size="1">From: </font><font face="sans-serif" size="1">"pat" <pat@xvalheru.org></font><br />
> <font color="#5F5F5F" face="sans-serif" size="1">To: </font><font face="sans-serif" size="1">openstack@lists.launchpad.net, </font><br />
> <font color="#5F5F5F" face="sans-serif" size="1">Date: </font><font face="sans-serif" size="1">02/06/2013 10:35 AM</font><br />
> <font color="#5F5F5F" face="sans-serif" size="1">Subject: </font><font face="sans-serif" size="1">[Openstack] keystone question</font><br />
> <font color="#5F5F5F" face="sans-serif" size="1">Sent by: </font><font face="sans-serif" size="1">openstack-bounces+litong01=us.ibm.com@lists.launchpad.net</font><br />
>
<hr align="left" noshade="noshade" size="2" style="color:#8091A5; " width="100%" />
<br />
><br />
> <tt><font size="2">Hi all,<br />
><br />
> I have a question about keystone. I have an application (Jee web one) which I<br />
> want to authenticate against keystone. What I have to do?<br />
><br />
> Thanks<br />
><br />
>     Pat<br />
><br />
> ----------------------------------------<br />
> Freehosting PIPNI - </font></tt><tt><font size="2"><a href="http://www.pipni.cz/">http://www.pipni.cz/</a></font></tt><br />
<tt><font size="2">><br />
> _______________________________________________<br />
> Mailing list: </font></tt><tt><font size="2"><a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a></font></tt><br />
<tt><font size="2">> Post to     : openstack@lists.launchpad.net<br />
> Unsubscribe : </font></tt><tt><font size="2"><a href="https://launchpad.net/~openstack">https://launchpad.net/~openstack</a></font></tt><br />
<tt><font size="2">> More help   : </font></tt><tt><font size="2"><a href="https://help.launchpad.net/ListHelp">https://help.launchpad.net/ListHelp</a></font></tt><br />
<tt><font size="2">><br />
> </font></tt><br />
><br />
> ---------------------------------------------------------------------------<br />
> Freehosting PIPNI - <a href="http://www.pipni.cz/">http://www.pipni.cz/</a><br />
<br />
<br />


<br><p>

---------------------------------------------------------------------------

<br />

Freehosting PIPNI - <a href="http://www.pipni.cz/">http://www.pipni.cz/</a>

</p>

<br></body>
</html>