2014-07-03 16:20:26 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2013-12-25 15:19:33 +00:00
|
|
|
<section xmlns="http://docbook.org/ns/docbook"
|
2014-07-09 17:50:31 +00:00
|
|
|
xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
|
|
version="5.0"
|
|
|
|
xml:id="sdk_auth">
|
2014-04-07 04:14:05 +00:00
|
|
|
<title>Authenticate</title>
|
2014-04-22 14:34:13 +00:00
|
|
|
<para>When using the SDK, you must authenticate against an OpenStack
|
|
|
|
endpoint before you can use OpenStack services. Each project uses
|
|
|
|
a slightly different syntax for authentication.</para>
|
2013-12-25 15:19:33 +00:00
|
|
|
<para>You must typically authenticate against a specific version of
|
|
|
|
a service. For example, a client might need to authenticate
|
2014-04-07 04:14:05 +00:00
|
|
|
against Identity v2.0.</para>
|
2013-12-25 15:19:33 +00:00
|
|
|
<para>Python scripts that use the OpenStack SDK must have access to the
|
|
|
|
credentials contained in the
|
|
|
|
<link linkend="cli_openrc">OpenStack RC file</link>. Because credentials
|
|
|
|
are sensitive information, do not include them in your scripts. This guide
|
2014-04-14 18:01:21 +00:00
|
|
|
assumes that users source the
|
|
|
|
<filename><replaceable>PROJECT</replaceable>-openrc.sh</filename>
|
|
|
|
file and access the credentials by using the environment variables
|
|
|
|
in the Python scripts.</para>
|
2013-12-25 15:19:33 +00:00
|
|
|
<xi:include href="section_sdk_auth_keystone.xml"/>
|
|
|
|
<xi:include href="section_sdk_auth_glance.xml"/>
|
2014-04-07 04:14:05 +00:00
|
|
|
<xi:include href="section_sdk_auth_nova.xml"/>
|
2013-12-25 15:19:33 +00:00
|
|
|
<xi:include href="section_sdk_auth_neutron.xml" />
|
|
|
|
</section>
|