Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
User Home Dir Check Removal
Browse files Browse the repository at this point in the history
Removing the part of the code checking for the presence of a home directory for the authenticated user. This was dedicated for Jupyterhub running on a host machine before; however, we changed the implementation to containerized Jupyterhub which provisions a unified container for each user with its dedicated home dir.
  • Loading branch information
yassinkhalifa committed Oct 5, 2023
1 parent a4d7914 commit 3499e4d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions crc_jupyter_auth/remote_user_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,6 @@ def get(self):
self.redirect_or_raise(self.authenticator.missing_role_redirect)
return

# Check if the user has an existing home directory
user_home_dir = os.path.expanduser('~{}'.format(remote_user))
if not os.path.exists(user_home_dir):
self.redirect_or_raise(self.authenticator.missing_user_redirect)
return

# Facilitate user authentication
user = self.user_from_username(remote_user)
self.set_login_cookie(user)
Expand Down

0 comments on commit 3499e4d

Please sign in to comment.