Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collect username from magpie api endpoint #26

Merged
merged 1 commit into from
Jan 17, 2024
Merged

Conversation

mishaschwartz
Copy link
Collaborator

Fetches the username from magpie instead of assuming that the value in the username field is a valid username (it can be an email address instead).

In response to Ouranosinc/Magpie#598

Copy link
Contributor

@Zeitsperre Zeitsperre left a comment

Choose a reason for hiding this comment

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

Fantastic! Would it be possible to modify the login box to say "Username or Email Address"?

Reference:
image

@tlvu tlvu requested a review from fmigneault January 16, 2024 19:03
Copy link
Contributor

@tlvu tlvu left a comment

Choose a reason for hiding this comment

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

LGTM, thanks !

@tlvu
Copy link
Contributor

tlvu commented Jan 16, 2024

Fantastic! Would it be possible to modify the login box to say "Username or Email Address"?

@Zeitsperre If my memory is right, this text is in the upstream jupyterhub code. This repo is not a fork of that upstream code, it merely is a rebuild of the upstream code with added Magpie Authenticator.

@mishaschwartz mishaschwartz merged commit 19bb523 into master Jan 17, 2024
@mishaschwartz mishaschwartz deleted the fetch-username branch January 17, 2024 20:28
mishaschwartz added a commit to bird-house/birdhouse-deploy that referenced this pull request Jan 17, 2024
## Overview

Previously, JupyterHub's `MagpieAuthenticator` class treated the email
address entered into the username field as the username itself. This led
to a mismatch between the username in JupyterHub and the username in
Magpie.

To resolve this, we update the JupyterHub docker image to a version
where this bug is fixed.

See Ouranosinc/jupyterhub#26 and
Ouranosinc/Magpie#598 for reference.

## Changes

**Non-breaking changes**
- Update jupyterhub to version 4.0.2-20240117

**Breaking changes**

## Related Issue / Discussion

- Resolves Ouranosinc/Magpie#598 

## Additional Information

Links to other issues or sources.

<!--
The test suite can be run using a different DACCS config with
``birdhouse_daccs_configs_branch: branch_name`` in the PR description.
To globally skip the test suite regardless of the commit message use
``birdhouse_skip_ci: true`` in the PR description.
-->

birdhouse_daccs_configs_branch: master
birdhouse_skip_ci: false
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.

4 participants