Skip to content

Commit

Permalink
update for pylint Line too long (160/140)
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-bearabbit committed Nov 24, 2023
1 parent 4afbe1e commit 9def190
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions desktop/core/src/desktop/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,18 @@ def process_view(self, request, view_func, view_args, view_kwargs):
request.view_func = view_func
access_log_level = getattr(view_func, 'access_log_level', None)

# Skip loop for oidc
if request.path in ['/oidc/authenticate/', '/oidc/callback/', '/oidc/logout/', '/hue/oidc_failed/', '/saml2/login/', '/saml2/logout/', '/accounts/logout/']:
# Skip loop for oidc and saml2
skip_paths = [
'/oidc/authenticate/',
'/oidc/callback/',
'/oidc/logout/',
'/hue/oidc_failed/',
'/saml2/login/',
'/saml2/logout/',
'/accounts/logout/'
]

if request.path in skip_paths:
return None

if AUTH.AUTO_LOGIN_ENABLED.get() and request.path.startswith('/api/v1/token/auth'):
Expand Down

0 comments on commit 9def190

Please sign in to comment.