Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias identifier ImportFrom alias TryExcept body Assign NameStore AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Str If BoolOpAnd Call AttributeLoad NameLoad attr CompareNotEq NameLoad Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr body If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr CompareNotIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr CompareNotIn AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Dict Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad Str ListLoad If BoolOpAnd CompareIn NameLoad NameLoad CompareNotEq NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Dict Str NameLoad If CompareEq AttributeLoad NameLoad attr Str body Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad If CompareIs NameLoad NameLoad body Assign NameStore Dict Str AttributeLoad NameLoad attr If UnaryOpNot NameLoad body If Call AttributeLoad NameLoad attr body Assign NameStore Str Assign SubscriptStore NameLoad Index Str NameLoad orelse Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad keyword NameLoad keyword NameLoad NameLoad If CompareEq AttributeLoad NameLoad attr Str body Expr Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Str Expr Call AttributeLoad NameLoad attr NameLoad Str Call AttributeLoad AttributeLoad NameLoad attr attr Str Str If Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Return NameLoad decorator_list Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str TryExcept body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body Assign NameStore BinOpMod Str Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Str NameLoad keyword Num Return NameLoad Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Return Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam defaults NameLoad kwarg body Expr Str Assign NameStore BinOpMod Str Dict Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If BoolOpAnd NameLoad NameLoad body Expr Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If BoolOpAnd NameLoad NameLoad body Expr Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Expr Str Return Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad If CompareGtE Call AttributeLoad NameLoad attr Num body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad orelse Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body Expr Str Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad TryExcept body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpMod Str Dict Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad handlers ExceptHandler type AttributeLoad NameLoad attr body Assign NameStore BinOpMod Call NameLoad Str Dict Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If UnaryOpNot Call NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr If NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str If BoolOpAnd NameLoad NameLoad CompareNotEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Expr Call NameLoad keyword NameLoad keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Call AttributeLoad NameLoad attr NameLoad keyword NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore BinOpMod Call NameLoad Str Dict Str AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam NameParam NameParam defaults AttributeLoad NameLoad attr body Expr Str If CompareIn NameLoad AttributeLoad AttributeLoad NameLoad attr attr body Assign SubscriptStore AttributeLoad NameLoad attr Index Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str If UnaryOpNot Call NameLoad keyword NameLoad keyword Call AttributeLoad NameLoad attr body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Str SubscriptLoad AttributeLoad NameLoad attr Index Str Return NameLoad decorator_list NameLoad
N/A N/A logging django.conf settings django.contrib auth django.contrib.auth.decorators login_required django.contrib.auth views django_auth_views django.contrib messages django http django_http django shortcuts django.utils functional django.utils http django.utils.translation ugettext_lazy _ django.views.decorators.cache never_cache django.views.decorators.csrf csrf_exempt django.views.decorators.csrf csrf_protect django.views.decorators.debug sensitive_post_parameters keystoneauth1 exceptions keystone_exceptions keystoneauth1 token_endpoint N/A six openstack_auth exceptions openstack_auth forms openstack_auth.forms Login openstack_auth user auth_user openstack_auth utils N/A N/A N/A is_safe_url N/A http is_safe_url N/A N/A N/A AttributeError N/A N/A is_safe_url N/A utils is_safe_url N/A LOG N/A N/A logging getLogger __name__ login N/A N/A request template_name extra_context N/A None None kwargs N/A N/A Logs a user in using the :class:`~openstack_auth.forms.Login` form. N/A N/A N/A request method POST N/A N/A auth_type N/A N/A N/A request POST get auth_type credentials N/A N/A N/A N/A utils is_websso_enabled N/A auth_type credentials N/A N/A auth_url N/A N/A N/A request POST get region N/A url N/A N/A utils get_websso_url request auth_url auth_type N/A N/A N/A shortcuts redirect url N/A N/A N/A N/A request is_ajax N/A N/A N/A N/A N/A N/A request user is_authenticated N/A N/A auth REDIRECT_FIELD_NAME N/A request GET N/A N/A auth REDIRECT_FIELD_NAME N/A request POST N/A N/A N/A N/A shortcuts redirect N/A settings LOGIN_REDIRECT_URL N/A initial N/A N/A current_region N/A N/A N/A request session get region_endpoint None N/A requested_region N/A N/A N/A request GET get region None N/A regions N/A dict N/A getattr settings AVAILABLE_REGIONS N/A N/A N/A N/A requested_region regions N/A requested_region current_region N/A N/A N/A N/A initial update N/A region requested_region N/A N/A N/A request method POST N/A N/A form N/A N/A functional curry N/A forms Login N/A N/A form N/A N/A functional curry N/A forms Login initial initial N/A N/A extra_context None N/A N/A extra_context N/A redirect_field_name N/A auth REDIRECT_FIELD_NAME N/A N/A template_name N/A N/A N/A N/A request is_ajax N/A N/A template_name auth/_login.html N/A N/A extra_context N/A hide True N/A N/A template_name auth/login.html N/A res N/A N/A django_auth_views login request template_name template_name authentication_form form extra_context extra_context kwargs N/A N/A N/A request method POST N/A N/A N/A N/A utils set_response_cookie res login_region N/A N/A N/A request POST get region N/A N/A N/A utils set_response_cookie res login_domain N/A N/A N/A request POST get domain N/A N/A N/A N/A request user is_authenticated N/A N/A N/A N/A auth_user set_session_from_user request N/A request user N/A regions N/A dict N/A N/A N/A forms Login get_region_choices N/A region N/A N/A request user endpoint N/A region_name N/A N/A regions get region N/A N/A N/A request session N/A region_endpoint region N/A N/A N/A request session N/A region_name region_name N/A res N/A N/A sensitive_post_parameters csrf_protect never_cache websso N/A N/A request N/A N/A N/A Logs a user in using a token from Keystone's POST. N/A referer N/A N/A N/A request META get HTTP_REFERER N/A settings OPENSTACK_KEYSTONE_URL N/A auth_url N/A N/A utils clean_up_auth_url referer N/A token N/A N/A N/A request POST get token N/A N/A N/A N/A request user N/A N/A auth authenticate request request auth_url auth_url token token N/A N/A N/A N/A exceptions KeystoneAuthException N/A exc N/A N/A msg N/A Login failed: %s N/A N/A six text_type exc N/A res N/A N/A django_http HttpResponseRedirect N/A settings LOGIN_URL N/A N/A N/A res set_cookie logout_reason msg max_age 10 N/A res N/A N/A N/A auth_user set_session_from_user request N/A request user N/A N/A N/A auth login request N/A request user N/A N/A N/A N/A request session test_cookie_worked N/A N/A N/A N/A N/A request session delete_test_cookie N/A N/A N/A django_http HttpResponseRedirect N/A settings LOGIN_REDIRECT_URL N/A N/A sensitive_post_parameters csrf_exempt never_cache logout N/A N/A request login_url N/A None kwargs N/A N/A Logs out the user if he is logged in. Then redirects to the log-in page.

    :param login_url:
        Once logged out, defines the URL where to redirect after login

    :param kwargs:
        see django.contrib.auth.views.logout_then_login extra parameters.

     N/A msg N/A Logging out user "%(username)s". N/A username N/A N/A request user username N/A N/A N/A LOG info msg N/A endpoint N/A N/A N/A request session get region_endpoint N/A token N/A N/A N/A request session get token N/A N/A token endpoint N/A N/A N/A delete_token endpoint endpoint token_id N/A token id N/A domain_token N/A N/A N/A request session get domain_token N/A N/A domain_token endpoint N/A N/A N/A delete_token endpoint endpoint token_id N/A domain_token auth_token N/A  Securely logs a user out.  N/A N/A N/A django_auth_views logout_then_login request login_url login_url kwargs N/A delete_token N/A N/A endpoint token_id N/A N/A N/A Delete a token. N/A N/A N/A endpoint N/A N/A utils fix_auth_url_version endpoint N/A session N/A N/A utils get_session N/A auth_plugin N/A N/A token_endpoint Token endpoint endpoint token token_id N/A client N/A N/A N/A N/A utils get_keystone_client Client session session auth auth_plugin N/A N/A N/A N/A utils get_keystone_version 3 N/A N/A N/A N/A N/A client tokens revoke_token token token_id N/A N/A N/A N/A N/A client tokens delete token token_id N/A N/A N/A LOG info N/A Deleted token %s token_id N/A N/A N/A N/A keystone_exceptions ClientException N/A N/A N/A N/A LOG info Could not delete token N/A switch N/A N/A request tenant_id redirect_field_name N/A N/A auth REDIRECT_FIELD_NAME N/A N/A Switches an authenticated user from one project to another. N/A N/A N/A LOG debug N/A Switching to tenant %s for user "%s". N/A tenant_id N/A N/A request user username N/A endpoint N/A N/A utils fix_auth_url_version N/A N/A request user endpoint N/A session N/A N/A utils get_session N/A unscoped_token N/A N/A request user unscoped_token N/A auth N/A N/A utils get_token_auth_plugin auth_url endpoint token unscoped_token project_id tenant_id N/A N/A N/A auth_ref N/A N/A auth get_access session N/A msg N/A Project switch successful for user "%(username)s". N/A username N/A N/A request user username N/A N/A N/A LOG info msg N/A N/A N/A N/A keystone_exceptions ClientException N/A N/A msg N/A N/A _ Project switch failed for user "%(username)s". N/A username N/A N/A request user username N/A N/A N/A messages error request msg N/A auth_ref None N/A N/A N/A LOG exception An error occurred while switching sessions. N/A redirect_to N/A N/A N/A request GET get redirect_field_name N/A N/A N/A is_safe_url url redirect_to host N/A N/A request get_host N/A N/A redirect_to N/A settings LOGIN_REDIRECT_URL N/A auth_ref N/A N/A old_endpoint N/A N/A N/A request session get region_endpoint N/A old_token N/A N/A N/A request session get token N/A N/A old_token old_endpoint N/A N/A old_token id N/A auth_ref auth_token N/A N/A N/A delete_token endpoint old_endpoint token_id N/A old_token id N/A user N/A N/A auth_user create_user_from_token request N/A N/A auth_user Token auth_ref unscoped_token unscoped_token endpoint N/A N/A N/A auth_user set_session_from_user request user N/A message N/A N/A _ Switch to project "%(project_name)s" successful. N/A project_name N/A N/A request user project_name N/A N/A N/A messages success request message N/A response N/A N/A shortcuts redirect redirect_to N/A N/A N/A utils set_response_cookie response recent_project N/A N/A request user project_id N/A response N/A login_required switch_region N/A N/A request region_name redirect_field_name N/A N/A auth REDIRECT_FIELD_NAME N/A N/A Switches the user's region for all services except Identity service.

    The region will be switched if the given region is one of the regions
    available for the scoped project. Otherwise the region is not switched.
     N/A N/A region_name N/A N/A request user available_services_regions N/A N/A N/A N/A request session N/A services_region region_name N/A N/A N/A LOG debug N/A Switching services region to %s for user "%s". N/A region_name N/A N/A request user username N/A redirect_to N/A N/A N/A request GET get redirect_field_name N/A N/A N/A is_safe_url url redirect_to host N/A N/A request get_host N/A N/A redirect_to N/A settings LOGIN_REDIRECT_URL N/A response N/A N/A shortcuts redirect redirect_to N/A N/A N/A utils set_response_cookie response services_region N/A N/A request session N/A services_region N/A response N/A login_required