Rename _handle_saml2_tokens() method
Since federation is going to support other protocols than saml2, renaming the _handle_saml2_tokens() method to _handle_federation_tokens() Change-Id: I9682c41c3982838dcb280c4a093d1123bc740090 Closes-Bug: 1389583
This commit is contained in:
parent
3d9184b6f5
commit
2ba7d67c34
|
@ -430,8 +430,8 @@ class BaseProvider(provider.Provider):
|
|||
|
||||
token_ref = None
|
||||
if 'saml2' in method_names:
|
||||
token_ref = self._handle_saml2_tokens(auth_context, project_id,
|
||||
domain_id)
|
||||
token_ref = self._handle_federation_tokens(
|
||||
auth_context, project_id, domain_id)
|
||||
|
||||
access_token = None
|
||||
if 'oauth1' in method_names:
|
||||
|
@ -458,7 +458,7 @@ class BaseProvider(provider.Provider):
|
|||
token_id = self._get_token_id(token_data)
|
||||
return token_id, token_data
|
||||
|
||||
def _handle_saml2_tokens(self, auth_context, project_id, domain_id):
|
||||
def _handle_federation_tokens(self, auth_context, project_id, domain_id):
|
||||
user_id = auth_context['user_id']
|
||||
group_ids = auth_context['group_ids']
|
||||
idp = auth_context[federation.IDENTITY_PROVIDER]
|
||||
|
|
Loading…
Reference in New Issue