
The basic Auth plugin for v3 tokens makes the assumption that you need to pass in some AuthMethod objects. This works well for most auth types where you want the plugin to construct the auth request for you. In the case of federation though we want to be able to have a rescoping plugin that will return an auth_ref and not take any auth_methods as arguments. Extract the most basic part of the Auth plugin into BaseAuth class that Auth and federation plugins can both inherit from. Change-Id: Ia8c8c614b8eb51170346ff5b1e20a1e7ebbb47de
28 lines
927 B
Python
28 lines
927 B
Python
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
from keystoneclient.auth.identity.v3.base import * # noqa
|
|
from keystoneclient.auth.identity.v3.password import * # noqa
|
|
from keystoneclient.auth.identity.v3.token import * # noqa
|
|
|
|
|
|
__all__ = ['Auth',
|
|
'AuthConstructor',
|
|
'AuthMethod',
|
|
'BaseAuth',
|
|
|
|
'Password',
|
|
'PasswordMethod',
|
|
|
|
'Token',
|
|
'TokenMethod']
|