Provide the default get_auth_ref implementation

osc-lib tries to call it, failing for e.g. http_basic.

Change-Id: Iacfba0940beda4dce2a9be0c863cb506d4013e2f
This commit is contained in:
Dmitry Tantsur 2020-08-24 11:46:18 +02:00
parent c2d2e7af29
commit d21c52867f
2 changed files with 16 additions and 0 deletions

View File

@ -61,6 +61,17 @@ class BaseAuthPlugin(object):
""" """
return None return None
def get_auth_ref(self, session, **kwargs):
"""Return the authentication reference of an auth plugin.
There are no required kwargs. They are passed directly to the auth
plugin and they are implementation specific.
:param session: A session object to be used for communication
:type session: keystoneauth1.session.session
"""
return None
def get_headers(self, session, **kwargs): def get_headers(self, session, **kwargs):
"""Fetch authentication headers for message. """Fetch authentication headers for message.

View File

@ -0,0 +1,5 @@
---
fixes:
- |
Fixes missing ``get_auth_ref`` call for the ``none`` and ``http_basic``
authentication plugins. The implementation simply returns ``None``.