From 13c04d2702cc8e69cdba1897566f2658bebc49bc Mon Sep 17 00:00:00 2001 From: Chris Holden Date: Fri, 3 Jan 2025 15:25:21 -0500 Subject: [PATCH] Use API url as redirect_uri instead of 'script' --- csdap_bulk_download/csdap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csdap_bulk_download/csdap.py b/csdap_bulk_download/csdap.py index d7ddf32..02fcc72 100644 --- a/csdap_bulk_download/csdap.py +++ b/csdap_bulk_download/csdap.py @@ -30,7 +30,7 @@ def get_auth_token(self, username: str, password: str): # Get URL to EDL response = requests.get( f"{self.auth_endpoint}/", - params={"redirect_uri": "script"}, + params={"redirect_uri": self.csdap_api_url}, allow_redirects=False, ) if response.status_code not in (302, 307):