diff options
| author | Brant Knudson <bknudson@us.ibm.com> | 2016-02-28 10:44:44 -0600 |
|---|---|---|
| committer | Brant Knudson <bknudson@us.ibm.com> | 2016-02-28 17:17:33 +0000 |
| commit | eb70a26a60dd81e3639b3fadd8251f8cfc337539 (patch) | |
| tree | 77b965218c058111098a4a4874f95668ebb94a94 /doc/source/using-api-v3.rst | |
| parent | 7d57eceb19aaaca8de84a8701552715fc8153872 (diff) | |
| download | python-keystoneclient-eb70a26a60dd81e3639b3fadd8251f8cfc337539.tar.gz | |
Update developer docs for keystoneauth session
The developer docs should tell developers to use keystoneauth1
sessions rather than keystoneclient sessions or passing
arguments to the Client constructors. keystoneclient sessions and
constructing Clients using non-sessions is deprecated.
Change-Id: Ica19b8d6fb2f5d1a9d0d22d4fe08abb266fd6a86
Diffstat (limited to 'doc/source/using-api-v3.rst')
| -rw-r--r-- | doc/source/using-api-v3.rst | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/source/using-api-v3.rst b/doc/source/using-api-v3.rst index 61b2b9d..5885f7c 100644 --- a/doc/source/using-api-v3.rst +++ b/doc/source/using-api-v3.rst @@ -85,11 +85,11 @@ Authenticating Using Sessions ============================= Instantiate a :py:class:`keystoneclient.v3.client.Client` using a -:py:class:`~keystoneclient.session.Session` to provide the authentication +:py:class:`~keystoneauth1.session.Session` to provide the authentication plugin, SSL/TLS certificates, and other data:: - >>> from keystoneclient.auth.identity import v3 - >>> from keystoneclient import session + >>> from keystoneauth1.identity import v3 + >>> from keystoneauth1 import session >>> from keystoneclient.v3 import client >>> auth = v3.Password(auth_url='https://my.keystone.com:5000/v3', ... user_id='myuserid', @@ -118,7 +118,7 @@ password:: ... username=username, password=password, ... user_domain_name=user_domain_name) -A :py:class:`~keystoneclient.session.Session` should be passed to the Client +A :py:class:`~keystoneauth1.session.Session` should be passed to the Client instead. Using a Session you're not limited to authentication using a username and password but can take advantage of other more secure authentication methods. |
