45 Commits

Author SHA1 Message Date
Alvaro Lopez Garcia
82804f671d Improve authentication plugins documentation
The plugin documentation had some errors, like:

 - Erroneous Python code
 - Missing OpenID Connect plugins.
 - Not in alphabetical order.

Change-Id: I92cd40b130e55b04476b723db9bf7c309427832d
2016-08-02 08:58:06 +02:00
wangxiyuan
313006a4d5 Fix the doc error in "using-session"
Change-Id: I75bf2d6419f99bccb40ed372bde0e86be2a47b85
2016-07-28 16:50:50 +08:00
Roxana Gherle
53f1e3c7da Fix link for "extras dependencies" in extras doc
Extras documentation has a link for "extras dependencies" that
results in a "404 Not Found" error page. This patch fixes the doc
link to the correct URL from setuptools online doc.

Closes-Bug: #1604168
Change-Id: I8846f05a33eb6886004f551fc659b77cb8285de0
2016-07-18 14:53:04 -07:00
chioleong
e203d61092 Auth plugin for X.509 tokenless authentication
An auth plugin that allows service clients to be authenticated
with the X.509 tokenless authentication. Please find typical configured
options in authentication-plugins.rst

implements bp keystone-tokenless-authz-with-x509-ssl-client-cert

Change-Id: Ie0298f0ef7f3891cfc81072ab9ef9e501773fe5f
2016-07-05 17:11:36 -07:00
Lance Bragstad
ad5477754b Fix code example for OAuth1 authentication
Change-Id: I121f492a0715f447cd45b89d32496353e8e67bcc
2016-06-21 14:26:16 +00:00
Colleen Murphy
3e24bebd75 Document named kerberos plugin
In fc95d255 we made the kerberos plugin loadable via stevedore but did
not add it to the list of plugins that could be loaded that way. This
patch documents it.

Change-Id: Iea719e485287aec610520d440272179f0a9ee84f
2016-06-13 20:04:04 -04:00
guang-yee
9e29e6e9c5 Support TOTP auth plugin
Add support for time-based one-time password (TOTP) authentication.

Change-Id: I004677ac7f0e2fb8c059ad14868e661e8ee4c1f9
2016-06-13 11:40:43 -07:00
Jenkins
cf405534e5 Merge "Add oauth plugin to keystoneauth" 2016-05-11 02:54:48 +00:00
Jamie Lennox
c10722b789 Add oauth plugin to keystoneauth
OAuth1 has been supported by keystone for a long time, and was supported
as an authentication plugin in keystoneclient. Port this work to
keystoneauth and add the ability to load it from the CLI.

Closes-Bug: #1524862
Change-Id: Ie53aeb1b926104cac692cd98551a701522f7fec4
2016-05-10 14:31:59 +10:00
Colleen Murphy
118c9629e5 Expose allow parameters for URL discovery
The Discover class can fiilter API versions by experimental status, deprecated
status, and unknown status, and potentially more designations in the future.
The parameters that control this were not exposed in the Session or Adapter, so
users could not take advantage of this filtering through normal means. This
patch creates an 'allow' parameter for the Adapter that will get passed down as
keyword arguments into Discover.raw_version_data().

Now, given an unversioned endpoint like:

    $ openstack endpoint show cinder
    +--------------+----------------------------------+
    | Field        | Value                            |
    +--------------+----------------------------------+
    | adminurl     | http://192.168.122.183:8776      |
    | enabled      | True                             |
    | id           | 485107c1d92b41829c331a2dc82aaaeb |
    | internalurl  | http://192.168.122.183:8776      |
    | publicurl    | http://192.168.122.183:8776      |
    | region       | RegionOne                        |
    | service_id   | 01b4f36a173d4c59b31fc95763095373 |
    | service_name | cinder                           |
    | service_type | volume                           |
    +--------------+----------------------------------+

an Adapter can be used like this (this example would be expected to fail
since it disallows the deprecated volume V1 API):

    auth = Password(<auth_params>)
    sess = session.Session(auth=auth)
    adptr = adapter.Adapter(sess)
    adptr.get('<project-id>/volumes',
              endpoint_filter={'service_type': 'volume',
                               'interface': 'public',
                               'version': 1},
              allow={'allow_deprecated': False}))

This is inspired by an abandoned patch to keystoneclient[1] that exposed this
information as a tuple. The problem with exposing it like that is that
raw_version_data() defaults allow_deprecated to True, so including 'deprecated'
in the tuple or not including it would have the same result. Using a dict
allows us to keep the Discover interface the same.

[1] https://review.openstack.org/#/c/130159

Co-authored-by: Endre Karlson <endre.karlson@hp.com>

Change-Id: I54c29e1c2a4a2b02a3967f4ea108b8d2533616eb
Closes-bug: #1394245
2016-05-08 10:23:21 -07:00
Colleen Murphy
7d0cb04e6d Fix documentation example again
In d0617885 the example in the Service Discovery section was changed to
include the full URL of the endpoint. On closer inspection, it turns
out that the example is deliberately pointing out that you don't need
the full URL when using endpoint filtering, since the endpoint filter
is supposed to look up the endpoint in the catalog. The reason it
wasn't working out of the box, as pointed out in the bug[1], was that
devstack sets up v2.0 endpoints, so the example path was appending /v3
to a v2.0 endpoint and failing.

This patch reverts the example back to using just a path, but omits the
'/v3' part of the path and uses the admin interface so that it will
work on v2.0. This will work out of the box on devstack and will still
work if the user has set up endpoints with '/v3' in them.

[1] https://bugs.launchpad.net/keystoneauth/+bug/1519054/comments/2

Change-Id: I11637aaa1939327eb6d1819c1b740a99e0f21e83
2016-04-15 11:06:49 -07:00
Jenkins
6f882f4175 Merge "Documentation example fix" 2016-04-14 18:47:47 +00:00
Alexander Makarov
d061788546 Documentation example fix
Session usage example need full URL to work

Change-Id: I858f84dacc648250643711ac1d9b6d7b684110f8
Closes-Bug: 1519054
2016-04-11 20:34:25 +03:00
Thomas Bechtold
038b614d2e Fix doc build if git is absent
When building packages if git is absent, then we should not set
html_last_updated_fmt. It can still be set via the -D switch
when building with sphinx-build.

Change-Id: I3c55983a29150bb4f3742df5efa068f339ee1cd7
Closes-Bug: #1552251
2016-04-08 16:47:15 +02:00
Alexander Makarov
3b8a0c0c26 Examples for migration from keystoneclient
Changes to be done based on migration performed in Nova

Implements bp documentation

Change-Id: I7f6c1592673e7279e6c9a1729b502ff1cdbe2f0d
2016-03-25 22:42:02 +03:00
Navid Pustchi
b2cf285ba9 Keystoneauth Authentication Plugin doc typo
It will change the Keystinwclient typo.

Change-Id: I1f8f94a1afe3605d8642b001893e8a34745fc89b
2016-03-17 19:47:16 +00:00
Alexander Makarov
8b5c524ad3 Examples for kerberos and saml2 plugins
Provide examples on authentication using extras plugins:
 - kerberos
 - saml2
 - adfs

Implements bp documentation

Change-Id: I18d11a98e056546f1a101001e1665e2968e75c65
2016-03-09 18:29:21 +03:00
Jenkins
e035d68e97 Merge "Editorial nits for docs" 2016-03-02 00:18:34 +00:00
Jenkins
f4314aff5f Merge "Add links to federation plugins" 2016-03-02 00:15:31 +00:00
Jenkins
33ebd76a82 Merge "Update test run instructions" 2016-03-02 00:15:25 +00:00
Brant Knudson
9b74f9d5ec Editorial nits for docs
Reworded some sections.

Cleaned up some rst formatting. `` is for string constants, ` is for
field names.

Change-Id: Iad6c2baa5c41ed70aea1e30f677ba2682879952c
2016-03-01 20:35:11 +00:00
Brant Knudson
16596c91bf Add links to federation plugins
The federation plugins weren't referenced along with the other
authentication plugins so nobody could find them.

Change-Id: Iedfe179e36864405521e854962d0e6628cf2f5fe
2016-03-01 20:35:03 +00:00
Brant Knudson
8d4cdd66b0 Update test run instructions
Use tox to run tests.

Change-Id: Icb4d5a04d20dde1a126666157a1e134a13ee512a
2016-03-01 11:23:25 -06:00
Jacek Tomasiak
34ecf4b627 Fix typos and improve formatting in migrating.rst
Change-Id: Icc0dd54c8479e83932aae261d287485ddf1458f8
2016-02-29 17:23:57 +01:00
LiuNanke
627fdd0176 Replace deprecated library function os.popen() with subprocess
os.popen() is deprecated since version 2.6. Resolved with use of
subprocess module.
Closes-bug: #1529836

Change-Id: I0cc16f50fef738594c123a27f34a517dd002e4f5
2016-01-13 22:45:09 +08:00
Jenkins
764aab9485 Merge "Add some documentation about migrating from ksc" 2015-12-21 00:44:54 +00:00
Jamie Lennox
f4c4442f68 Add some documentation about migrating from ksc
With the upcoming deprecations from keystoneclient we should do a better
job explaining the changes for people trying to transition.

Change-Id: I7e0227c4b50267b165c119f0e83e28a400f18a09
2015-12-18 13:33:24 +11:00
Brant Knudson
d493e71070 Docstring corrections
Fixes some of the more obvious issues with docstrings.

Change-Id: I85faf10ecc99f3ab9f0d5670e32df74bedd02793
2015-12-17 17:09:58 -06:00
Jenkins
30f9a02fa2 Merge "Remove confusing documentation" 2015-12-10 15:39:47 +00:00
Steve Martinelli
0402b103ef small fix to missing parameters in documentation
user-name is given, but is pointless without a domain to scope the
user to.

Change-Id: I12c2f389e1152e82451e368630c5893c0c777df7
Closes-Bug: 1517858
2015-12-10 00:45:14 -05:00
Jamie Lennox
5abb1743f3 Remove confusing documentation
When copying this documentation over from keystoneclient we much have
simply replaced occurences of keystoneclient with keystoneauth. Details
how to migrate keystoneclient to using sessions make sense in
keystoneclient however the migration doc makes no sense in keystoneauth1
because those parameters don't exist.

Change-Id: I70160f42115d7dfe7610699479baf2e9420fe1b3
2015-12-10 14:15:11 +11:00
Brant Knudson
2baf7c49ad Migrate kerberos plugin
The auth plugin from the keystoneclient-kerberos repository is
copied to this package. It was in its own repository because it
requires the requests-kerberos package and we want to minimize
requirements in keystoneauth (or keystoneclient at the time the
plugin was originally developed). Since we've got support for
"extras" in setup.cfg in pip now this isn't an issue with the
package anymore. Users of the kerberos plugin must install the
extra packages using

 $ pip install keystoneauth['kerberos']

otherwise the plugin will fail to load.

Closes-Bug: 1512741
Change-Id: Ia84bf559413e9bfd1a3faaceb417c2477bd10d5f
2015-11-10 10:05:57 -06:00
Brant Knudson
df9415fe25 Correct references in authentication-plugin.rst
The references to modules and classes were incorrect.

Also fixed some other formatting issues.

Change-Id: I83c7922b970701700008ab7977431a8e32cfd908
2015-11-03 14:53:31 +00:00
Jamie Lennox
bb98d0182d Declare an extras directory for plugins
Create an extras directory and add some explanatory documentation for
dealing with plugins defined in extras.

Change-Id: Ibdd6bc16f38d1b9ca38db775671876458ec60e7a
2015-11-03 14:31:36 +11:00
Jenkins
6d12376ae1 Merge "auto-generate release history" 2015-10-06 01:02:46 +00:00
Steve Martinelli
7bb7f56932 auto-generate release history
currently there is no release history for keystoneauth, though
sometimes the commits are lacking context, this automated approach
is far better than nothing.

Change-Id: I584ded3921db9ecb8cad8f99d610bd2987394501
2015-10-05 21:16:21 +00:00
Jenkins
4ee46e58f7 Merge "Fix doc session example" 2015-09-30 16:44:08 +00:00
Steve Martinelli
662394b104 remove references to keystone CLI
not sure what this was doing here in the first place, but the
CLI reference and man page have to go!

Change-Id: I68885014bd9c7ce2741580c8026567b698ed9361
2015-09-25 11:23:25 -04:00
Ghe Rivero
a0e1d741d1 Fix doc session example
Update doc example to use keystoneclient and correct
v3 identity api parameters

Change-Id: I1ce288a1620c4aabd0aeaf78cb94ea13aa0657f8
2015-09-22 13:24:56 +02:00
Morgan Fainberg
a0000e4e9a Move to the keystoneauth1 namespace
Conver from the keystoneauth namespace to keystoneauth1. This is to
ensure that is is possible to install all versions of keystoneauth
side-by-side.

Change-Id: Ibbaf11525980c8edb5968d8b8ee19c55094e77d8
2015-06-25 16:48:54 -07:00
David Stanek
f34c1b0cb1 Removes temporary fix for doc generation
A temporary fix was added to get around a bug in how pbr handles
its autodoc_tree_index_modules setting. Since this bug is fixed we no
longer need the work around.

Change-Id: Id8274ef5c244bf50a34702ed9b4e50d3b82d8028
Closes-Bug: #1260495
(cherry picked from commit 045e47938f445741b6efedeb7243d3b413ea3229)
2015-06-15 12:27:43 +08:00
Jamie Lennox
66cc36a68e Base Documentation changes
Update the description to something more appropriate to keystoneauth and
remove the api version specific docs that are not relevant.

Change-Id: Ife0243f9ca5d268fee9544835f3a981cd47144c8
2015-05-01 09:50:10 +10:00
Jamie Lennox
581f4cd493 Change keystoneclient to keystoneauth in docs
This was simply the result of:

find -type f | xargs sed -i 's/keystoneclient/keystoneauth/g'
find -type f | xargs sed -i 's/python-keystoneauth/keystoneauth/g'

in the docs directory to fix the build failure.

Will look at a doc rewrite soon.

Change-Id: I05d4be12f31ea47e917dc79e50d17b174bf89938
2015-04-30 18:23:47 +10:00
Morgan Fainberg
49a223a370 Add doc data back in. This will be replaced by real doc data.
Change-Id: I59c11298a1d350a81a7298e9333da0c36e61a1a7
2015-04-28 16:12:16 -04:00
Clark Boylan
3011a83edc Move docs to doc.
To better facilitate the building and publishing of sphinx
documentation by Jenkins we are moving all openstack projects with
sphinx documentation to a common doc tree structure. Documentation
goes in project/doc/source and build results go in project/doc/build.

Change-Id: I205e8bb1ddf6dae1d7392b32975319c6a6d98673
2012-06-11 13:33:02 -07:00