<div dir="ltr">You're android device must be be able to access Identity Service URL from your android.<div>So if you're trying to access localhost:5000 you're device (I would assume emulated in this case) must run on the same machine (your dev laptop, I would assume) as your OpenStack Identity Service.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 15, 2014 at 7:30 AM, Manickam, Kanagaraj <span dir="ltr"><<a href="mailto:kanagaraj.manickam@hp.com" target="_blank">kanagaraj.manickam@hp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">From Horizon, you won’t be able to do keystone way of authentication.
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif"">From:</span></b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> Ed Lima [mailto:<a href="mailto:ed@stackerz.com" target="_blank">ed@stackerz.com</a>]
<br>
<b>Sent:</b> Wednesday, October 15, 2014 8:30 AM<br>
<b>To:</b> <a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a><br>
<b>Subject:</b> [openstack-dev] Get keystone auth token via Horizon URL<u></u><u></u></span></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p style="margin-right:0in;margin-bottom:10.5pt;margin-left:0in">
<span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:#4b4b4b">I'm on the very early stages of developing an app for android to manage openstack services and would like to get the user credentials/tokens on keystone to get data and execute commands
via the horizon URL. I'm using IceHouse on Ubuntu 14.04.<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:10.5pt;margin-left:0in">
<span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:#4b4b4b">In my particular use case I have keystone running on my internal server "<strong><span style="font-family:"Arial","sans-serif""><a href="http://localhost:5000/v3/auth/tokens" target="_blank"><span style="color:#1b79bd;text-decoration:none">http://localhost:5000/v3/auth/tokens</span></a></span></strong>"
which would allow me to use my app fine with JSON to get information from other services and execute commands however I'd have to be on the same network as my server for it to work.<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:10.5pt;margin-left:0in">
<span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:#4b4b4b">On the other hand I have my horizon URL published externally on the internet at the address "<strong><span style="font-family:"Arial","sans-serif""><a href="https://openstack.domain.com/horizon" target="_blank"><span style="color:#1b79bd;text-decoration:none">https://openstack.domain.com/horizon</span></a></span></strong>"
which is available from anywhere and gives me access to my OpenStack services fine via browser on a desktop. I'd like to do the same on android, would it be possible? Is there a way for my app to send JSON requests to horizon at <strong><span style="font-family:"Arial","sans-serif""><a href="https://openstack.domain.com/horizon" target="_blank"><span style="color:#1b79bd;text-decoration:none">https://openstack.domain.com/horizon</span></a></span></strong> and
get the authentication tokens from keystone indirectly?<u></u><u></u></span></p>
<p style="margin-right:0in;margin-bottom:10.5pt;margin-left:0in">
<span style="font-size:10.5pt;font-family:"Arial","sans-serif";color:#4b4b4b">I should mention I'm not a very experienced developer and any help would be amazing! Thanks<u></u><u></u></span></p>
</div>
</div></div></div>
</div>
<br>_______________________________________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Igor, <div><font color="#993300" size="4">thin</font><b style="font-size:large">KING</b></div><div><i><font size="1" face="georgia, serif"><span></span><span></span>solving real problems</font></i></div>
</div>