Skip to content

Commit

Permalink
@W-16662200 - fix auth params code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
vsbharath committed Sep 5, 2024
1 parent fc77d48 commit 745758a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sfdo_template_helpers/oauth2/salesforce/provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class SFDOSalesforceProvider(SalesforceProvider):
package = "sfdo_template_helpers.oauth2.salesforce"

def get_auth_params(self, request, action):
def get_auth_params_from_request(self, request, action):
ret = super().get_auth_params_from_request(request, action)
# This will ensure that even if you're logged in to Salesforce,
# you'll be prompted to choose an identity to auth as:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def dummy_app():
@pytest.mark.django_db
def test_get_auth_params(rf, dummy_app):
request = rf.get("/")
result = SFDOSalesforceProvider(request, dummy_app).get_auth_params(request, None)
result = SFDOSalesforceProvider(request, dummy_app).get_auth_params_from_request(request, None)
assert "prompt" in result and result["prompt"] == "login"


Expand Down

0 comments on commit 745758a

Please sign in to comment.