OpenStack Identity Authentication Library
Go to file
Monty Taylor 46286b1cf9
Add version discovery support to BaseAuthPlugin
The new 'none' auth plugin and the old 'admin_token' plugin
are subclasses of BaseAuthPluign, not BaseIdentityPlugin.
That means if someone does:

  s = session.Session(noauth.NoAuth())
  a = adapter.Adapter(s, endpoint_override='https://example.com')

to get an Adapter on an endpoint using the none plugin, then does
either:

  a.get_api_major_version()

or:

  a.get_endpoint_data()

it will fail because the none plugin doesn't have those methods.

There is, however, nothing about those methods that necessarily needs
authentication. That is, they can work just fine in contexts without
a keystone token or without authentication of any sort.

Ironic/Bifrost is specifically a usecase here, as standalone Ironic
wants to use the 'none' plugin, but consuming the API still needs to
get microversion info from the given endpoint.

Add methods to BaseAuthPlugin that take less arguments since the ones
about finding services in catalogs make zero sense in none/admin_token
context.

Change-Id: Id9bd19cca68206fc64d23b0eaa95aa3e5b01b676
2017-09-06 15:43:30 -05:00
doc Merge "Fixed minor review comments and updated docs" 2017-07-20 21:55:44 +00:00
keystoneauth1 Add version discovery support to BaseAuthPlugin 2017-09-06 15:43:30 -05:00
releasenotes Update reno for stable/pike 2017-07-28 21:03:34 +00:00
tools Add Constraints support 2016-12-21 11:24:09 +11:00
.coveragerc Update coverage to keystoneauth1 2015-12-09 11:46:00 +11:00
.gitignore Add release notes for keystoneauth 2015-11-29 20:05:16 -05:00
.gitreview Initial Split of python-keystoneclient to keystoneauth 2015-04-20 14:49:59 -07:00
.mailmap Add mailmap entry 2014-05-07 12:12:43 -07:00
.testr.conf Move to the keystoneauth1 namespace 2015-06-25 16:48:54 -07:00
bindep.txt Optimize the link address 2017-06-13 16:11:19 +07:00
CONTRIBUTING.rst Use https for *.openstack.org references 2017-02-06 13:45:24 -08:00
HACKING.rst Update URLs in documents according to document migration 2017-07-14 09:23:53 +08:00
LICENSE Initial Split of python-keystoneclient to keystoneauth 2015-04-20 14:49:59 -07:00
README.rst Update URLs in documents according to document migration 2017-07-14 09:23:53 +08:00
requirements.txt Remove use of positional decorator 2017-08-07 16:37:07 -07:00
setup.cfg Updated from global requirements 2017-08-26 11:33:45 +00:00
setup.py Updated from global requirements 2017-03-08 22:46:11 +00:00
test-requirements.txt Updated from global requirements 2017-08-26 11:33:45 +00:00
tox.ini Enable some off-by-default checks 2017-07-26 22:07:14 -04:00

Team and repository tags

image

keystoneauth

Latest Version

Downloads

This package contains tools for authenticating to an OpenStack-based cloud. These tools include:

  • Authentication plugins (password, token, and federation based)
  • Discovery mechanisms to determine API version support
  • A session that is used to maintain client settings across requests (based on the requests Python library)

Further information: