Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7d35392

Browse files
committed
rebase protocols PR
1 parent a4b18a2 commit 7d35392

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

auth0/v3/management/organizations.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ class Organizations(object):
1818
(defaults to 5.0 for both)
1919
"""
2020

21-
def __init__(self, domain, token, telemetry=True, timeout=5.0):
21+
def __init__(self, domain, token, telemetry=True, timeout=5.0, protocol="https"):
2222
self.domain = domain
23+
self.protocol = protocol
2324
self.client = RestClient(jwt=token, telemetry=telemetry, timeout=timeout)
2425

2526
def _url(self, *args):
26-
url = 'https://{}/api/v2/organizations'.format(self.domain)
27+
url = '{}://{}/api/v2/organizations'.format(self.protocol, self.domain)
2728
for p in args:
2829
if p is not None:
2930
url = '{}/{}'.format(url, p)

0 commit comments

Comments
 (0)