fix: updates get provider from pipeline wrong parameter - #27079
Conversation
A SAML provider check has already been added to third_party_auth utils in b99a64c This change simply removes the old `is_provider_saml` method and replaces it with the new `is_saml_provider`
|
Thanks for the pull request, @nizarmah! I've created OSPR-5682 to keep track of it in JIRA, where we prioritize reviews. Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
Previously, the provider was being retrieved from the pipeline using `common.djangoapps.third_party_auth.provider.Registry.get_from_pipeline`. After some investigation into how the method works, it turned out that it used `ProviderConfig.is_active_for_pipeline` to check if the backend is active in the pipeline. That method, compares `ProviderConfig.backend_name` with `pipeline['backend']` which indicates that the pipeline's backend name should be passed and not the pipeline's backend class.
e4c497e to
3c0e083
Compare
|
Your PR has finished running tests. The following contexts failed:
|
|
Closing this pull request because I'm not sure what the test should be actually resulting in, and I don't want to adjust the test without knowing why I did an adjustment. |
|
@nizarmah Even though your pull request wasn’t merged, please take a moment to answer a two question survey so we can improve your experience in the future. |
Description
Previously, the provider was being retrieved from the pipeline using
common.djangoapps.third_party_auth.provider.Registry.get_from_pipeline.After some investigation into how the method works, it turned out that it used
ProviderConfig.is_active_for_pipelineto check if the backend is active in the pipeline.That method, compares
ProviderConfig.backend_namewithpipeline['backend']which indicates that the pipeline's backend name should be passed and not the pipeline's backend class.This pull request also removes duplicate code for saml provider check. A SAML provider check has already been added to third_party_auth utils in b99a64c. This change simply removes the old
is_provider_samlmethod and replaces it with the newis_saml_provider.Supporting information
Testing instructions
Not sure... The pull request that introduced that change has no description, so I have no idea how to test it.