Skip to content

Commit 4dae598

Browse files
committed
removed check for public org when authenticating - can authenticate to public org now
1 parent 407c279 commit 4dae598

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

sliderule/sliderule.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ def authenticate (ps_organization, ps_username=None, ps_password=None):
620620
service_org = ps_organization
621621

622622
# check for direct or public access
623-
if service_org == None or service_org == PUBLIC_ORG:
623+
if service_org == None:
624624
return True
625625

626626
# attempt retrieving from environment
@@ -644,7 +644,6 @@ def authenticate (ps_organization, ps_username=None, ps_password=None):
644644
headers = {'Content-Type': 'application/json'}
645645
try:
646646
api = "https://" + ps_url + "/api/org_token/"
647-
print("cred", api, ps_username, ps_password, ps_organization)
648647
rsps = requests.post(api, data=json.dumps(rqst), headers=headers, timeout=request_timeout)
649648
rsps.raise_for_status()
650649
rsps = rsps.json()

0 commit comments

Comments
 (0)