Merge "Deprecate the pki and pkiz token providers."

This commit is contained in:
Jenkins 2015-12-09 07:52:34 +00:00 committed by Gerrit Code Review
commit 3ac286897f
3 changed files with 16 additions and 0 deletions

View File

@ -17,6 +17,7 @@
from keystoneclient.common import cms
from oslo_config import cfg
from oslo_log import log
from oslo_log import versionutils
from oslo_serialization import jsonutils
from keystone.common import environment
@ -31,6 +32,10 @@ CONF = cfg.CONF
LOG = log.getLogger(__name__)
@versionutils.deprecated(
as_of=versionutils.deprecated.MITAKA,
what='the PKI token provider',
in_favor_of='the Fernet or UUID token providers')
class Provider(common.BaseProvider):
def _get_token_id(self, token_data):
try:

View File

@ -15,6 +15,7 @@
from keystoneclient.common import cms
from oslo_config import cfg
from oslo_log import log
from oslo_log import versionutils
from oslo_serialization import jsonutils
from keystone.common import environment
@ -30,6 +31,10 @@ LOG = log.getLogger(__name__)
ERROR_MESSAGE = _('Unable to sign token.')
@versionutils.deprecated(
as_of=versionutils.deprecated.MITAKA,
what='the PKIZ token provider',
in_favor_of='the Fernet or UUID token providers')
class Provider(common.BaseProvider):
def _get_token_id(self, token_data):
try:

View File

@ -0,0 +1,6 @@
---
other:
- >
[`blueprint deprecated-as-of-mitaka <https://blueprints.launchpad.net/keystone/+spec/deprecated-as-of-mitaka>`_]
As of the Mitaka release, the PKI and PKIz token formats have been
deprecated. They will be removed in the 'O' release.