69afda54b5
Consistently create and use PROJECT-openrc.sh files. This is the default when you use the dashboard, so let's follow this everywhere. This makes it also clearer which project is used. Change-Id: I5e4604ed61b29e86193697171a9fc84f673fc102 Partial-Bug: #1290082
25 lines
1.2 KiB
XML
25 lines
1.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<section xmlns="http://docbook.org/ns/docbook"
|
|
xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0" xml:id="sdk_auth">
|
|
<title>Authenticate</title>
|
|
<para>You must authenticate against an OpenStack endpoint before you
|
|
can use OpenStack services. Each project uses a slightly different
|
|
syntax for authentication.</para>
|
|
<para>You must typically authenticate against a specific version of
|
|
a service. For example, a client might need to authenticate
|
|
against Identity v2.0.</para>
|
|
<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
|
|
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>
|
|
<xi:include href="section_sdk_auth_keystone.xml"/>
|
|
<xi:include href="section_sdk_auth_glance.xml"/>
|
|
<xi:include href="section_sdk_auth_nova.xml"/>
|
|
<xi:include href="section_sdk_auth_neutron.xml" />
|
|
</section>
|