Skip to content

Conversation

@ccjoel
Copy link
Contributor

@ccjoel ccjoel commented Nov 24, 2025

No description provided.

@ccjoel ccjoel requested a review from mattprintz November 24, 2025 16:30
@ccjoel ccjoel marked this pull request as ready for review November 24, 2025 16:30
if result and not isinstance(result, BeakerUser):
# Convert standard User to BeakerUser
logging.debug(f"Converting {type(result).__name__} to BeakerUser")
result = BeakerUser(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mattprintz this is what I mentioned on today's sync re: having issues with the user "not being a BeakerUser" when using the default Notebook Identity Provider. Without this I wasn't able to run with the base provider.

shutil.chown(virtual_home_dir, user=subkernel_user, group=subkernel_user)
# Try to change ownership if running as root/privileged user
try:
shutil.chown(virtual_home_dir, user=subkernel_user, group=subkernel_user)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to add try/catch so this would work with default identity provider (nor cognito), else it would crash. I can't recall if this was needed for using with the CognitoAppManagedIdentityHeadersProvider as well

"""

@web.authenticated
async def get(self):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the BeakerHub UI (Dashboard, etc) to use the token in its cookies. Fetched once by UI as long as the cookie is valid and still on Headers.

Copy link
Collaborator

@mattprintz mattprintz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@ccjoel ccjoel merged commit b5a29ff into dev Nov 25, 2025
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants