Skip to content

Commit 95f586b

Browse files
committed
changed ps urls
1 parent 6dd2922 commit 95f586b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sliderule/sliderule.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ def authenticate (ps_organization, ps_username=None, ps_password=None):
600600
rqst = {"username": ps_username, "password": ps_password, "org_name": ps_organization}
601601
headers = {'Content-Type': 'application/json'}
602602
try:
603-
api = "https://" + ps_url + "/ps/api/org_token/"
603+
api = "https://" + ps_url + "/api/org_token/"
604604
rsps = requests.post(api, data=json.dumps(rqst), headers=headers, timeout=request_timeout).json()
605605
ps_refresh_token = rsps["refresh"]
606606
ps_access_token = rsps["access"]

utils/auth_request.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
url = sys.argv[4]
2323

2424
# Authentication Request
25-
url = "https://ps." + url + "/ps/api/org_token/"
25+
url = "https://ps." + url + "/api/org_token/"
2626
rqst = {"username": username, "password": password, "org_name": organization}
2727
headers = {'Content-Type': 'application/json'}
2828
rsps = requests.post(url, data=json.dumps(rqst), headers=headers, timeout=(60,10)).json()
@@ -31,7 +31,7 @@
3131
access = rsps["access"]
3232

3333
# Organization Access Request
34-
url = "https://ps." + url + "/ps/api/get_membership_status/" + organization + "/"
34+
url = "https://ps." + url + "/api/membership_status/" + organization + "/"
3535
headers = {'Authorization': 'Bearer ' + access}
3636
rsps = requests.get(url, headers=headers, timeout=(60,10)).json()
3737
print("Validation Response: ", rsps)

0 commit comments

Comments
 (0)