line too long (100 > 88 characters)
225 redirect_url = next
226 else:
227 if hasattr(settings, 'CAS_ROOT_PROXIED_AS') and settings.CAS_ROOT_PROXIED_AS:
228 protocol, host, _, _, _, _ = urllib_parse.urlparse(settings.CAS_ROOT_PROXIED_AS)229 else:
230 protocol = get_protocol(request)
231 host = request.get_host()
line too long (93 > 88 characters)
224 if next_page.lower().startswith("https://") or next_page.lower().startswith("http://"):
225 redirect_url = next
226 else:
227 if hasattr(settings, 'CAS_ROOT_PROXIED_AS') and settings.CAS_ROOT_PROXIED_AS:228 protocol, host, _, _, _, _ = urllib_parse.urlparse(settings.CAS_ROOT_PROXIED_AS)
229 else:
230 protocol = get_protocol(request)
line too long (99 > 88 characters)
221
222 next_page = next_page or get_redirect_url(request)
223 if settings.CAS_LOGOUT_COMPLETELY:
224 if next_page.lower().startswith("https://") or next_page.lower().startswith("http://"):225 redirect_url = next
226 else:
227 if hasattr(settings, 'CAS_ROOT_PROXIED_AS') and settings.CAS_ROOT_PROXIED_AS:
line too long (97 > 88 characters)
83 return HttpResponseRedirect(next_page)
84
85 def post(self, request: HttpRequest) -> HttpResponse:
86 next_page = clean_next_page(request, request.POST.get('next', settings.CAS_REDIRECT_URL)) 87 service_url = get_service_url(request, next_page)
88 client = get_cas_client(service_url=service_url, request=request)
89
line too long (94 > 88 characters)
62 if parsed_url.scheme != parsed_host.scheme and parsed_url.scheme:
63 return False
64 url_path = parsed_url.path if parsed_url.path.endswith('/') else parsed_url.path + '/'
65 host_path = parsed_host.path if parsed_host.path.endswith('/') else parsed_host.path + '/' 66 return url_path.startswith(host_path)
67
68
line too long (90 > 88 characters)
61 return False
62 if parsed_url.scheme != parsed_host.scheme and parsed_url.scheme:
63 return False
64 url_path = parsed_url.path if parsed_url.path.endswith('/') else parsed_url.path + '/' 65 host_path = parsed_host.path if parsed_host.path.endswith('/') else parsed_host.path + '/'
66 return url_path.startswith(host_path)
67
line too long (96 > 88 characters)
41def clean_next_page(request, next_page):
42 if not next_page:
43 return next_page
44 if settings.CAS_CHECK_NEXT and not is_local_url(request.build_absolute_uri('/'), next_page): 45 raise RedirectException("Non-local url is forbidden to be redirected to.")
46 return next_page
47
Description
Line length greater than configured max_line_length
detected, defaults to 79 character. This limit can be configured docs