Skip to content

Commit ae6fc17

Browse files
author
frickjack
committed
fix(auth): endpoint_from_token port handling
1 parent e14e03c commit ae6fc17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gen3/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def endpoint_from_token(token_str):
3434
urlparts = urlparse(info["iss"])
3535
endpoint = urlparts.scheme + "://" + urlparts.hostname
3636
if urlparts.port:
37-
endpoint += str(urlparts.port)
37+
endpoint += ":" + str(urlparts.port)
3838
return endpoint
3939

4040
def _handle_access_token_response(resp, token_key):

0 commit comments

Comments
 (0)