Skip to content

Conversation

@nuwang
Copy link
Member

@nuwang nuwang commented Jan 26, 2026

Adds more tests to ensure that oidc usernames conform to galaxy requirements.

Fixed in: #21234
closes: #20767

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

@nuwang nuwang force-pushed the improve_oidc_username_tests branch from 292b0e0 to 30b0f00 Compare January 26, 2026 14:13
self._assert_status_code_is(response, 200)
assert response.json()["email"] == "[email protected]"

def test_oidc_login_username_sanitization(self):
Copy link
Member

Choose a reason for hiding this comment

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

This is a really beautiful test setup - what a cool way to bootstrap auth-based testing! Not added here per se but I wanted to compliment it. These particular tests are also really clear and useful.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thank you. Claude helped with all the boilerplate.

@jmchilton jmchilton merged commit 6aabe68 into galaxyproject:dev Jan 28, 2026
55 of 59 checks passed
@github-actions
Copy link

This PR was merged without a "kind/" label, please correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

oidc allows for creation of invalid usernames which breaks sharing

3 participants