Browse Source

[create_session] Remove /notebook/api/create_session from not login and allowed already

Harshg999 4 years ago
parent
commit
078d4fe0fb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      desktop/core/src/desktop/middleware.py

+ 1 - 1
desktop/core/src/desktop/middleware.py

@@ -308,7 +308,7 @@ class LoginAndPermissionMiddleware(MiddlewareMixin):
     if request.path in ['/oidc/authenticate/', '/oidc/callback/', '/oidc/logout/', '/hue/oidc_failed/']:
       return None
 
-    if request.path.startswith('/api/') or request.path == '/notebook/api/create_session':
+    if request.path.startswith('/api/'):
       return None
 
     # Skip views not requiring login