From caa899b93d845985277277860f90a40cbf7722a2 Mon Sep 17 00:00:00 2001 From: ZhongShengping Date: Thu, 14 Feb 2019 17:09:21 +0800 Subject: [PATCH] Fix service_token_role_required option The service_token_roles_required should be correct. Change-Id: I009e3a495953d61fb0c29a8b629efa3322cb0ddd --- keystonemiddleware/auth_token/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/keystonemiddleware/auth_token/__init__.py b/keystonemiddleware/auth_token/__init__.py index de37aefd..72ba2239 100644 --- a/keystonemiddleware/auth_token/__init__.py +++ b/keystonemiddleware/auth_token/__init__.py @@ -374,9 +374,9 @@ class BaseAuthProtocol(object): check = self._service_token_roles.intersection(role_names) role_check_passed = bool(check) - # if service_token_role_required then the service token is only - # valid if the roles check out. Otherwise at this point it is - # true because keystone has already validated it. + # if service_token_roles_required then the service token is + # only valid if the roles check out. Otherwise at this point it + # is true because keystone has already validated it. if self._service_token_roles_required: request.service_token_valid = role_check_passed else: