Add username_key setting to configure python-social-auth OIDC #20497
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds the USERNAME_KEY setting to the OIDC config, which is used by python-social-auth to extract the username. We are implementing an OIDC login system across multiple platforms and need to configure this so we can have a Galaxy-specific username.
AuthnzManager
andPSAAuthnz
did not seem to have existing unit tests so I've added basic tests of parsing the XML config to check that values are passed through correctly.How to test the changes?
(Select all options that apply)
License