<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
span.EmailStyle19
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<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.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></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:ed@stackerz.com]
<br>
<b>Sent:</b> Wednesday, October 15, 2014 8:30 AM<br>
<b>To:</b> openstack-dev@lists.openstack.org<br>
<b>Subject:</b> [openstack-dev] Get keystone auth token via Horizon URL<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p style="mso-margin-top-alt:0in;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.<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0in;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"><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.<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0in;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"><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"><span style="color:#1B79BD;text-decoration:none">https://openstack.domain.com/horizon</span></a></span></strong> and
get the authentication tokens from keystone indirectly?<o:p></o:p></span></p>
<p style="mso-margin-top-alt:0in;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<o:p></o:p></span></p>
</div>
</div>
</body>
</html>