Skip to content

Commit 945fac0

Browse files
committed
Update to use string concat instead of urljoin
1 parent 784a96b commit 945fac0

File tree

1 file changed

+3
-20
lines changed

1 file changed

+3
-20
lines changed

tiled/access_control/access_policies.py

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import logging
22
import os
33
from typing import List, Optional, Tuple, Union
4-
from urllib.parse import urljoin, urlsplit
54

65
import httpx
76
from pydantic import BaseModel, HttpUrl, ValidationError
@@ -467,25 +466,9 @@ def __init__(
467466
The endpoint paths are combined with the authorization_provider URL using
468467
urljoin, extracting only the path component from each endpoint parameter.
469468
"""
470-
self._node_access = str(
471-
urljoin(
472-
str(authorization_provider),
473-
urlsplit(node_access).path,
474-
)
475-
)
476-
self._filter_nodes = str(
477-
urljoin(
478-
str(authorization_provider),
479-
urlsplit(filter_nodes).path,
480-
)
481-
)
482-
self._scopes_access = str(
483-
urljoin(
484-
str(authorization_provider),
485-
urlsplit(scopes_access).path,
486-
)
487-
)
488-
469+
self._node_access = str(authorization_provider) + node_access
470+
self._filter_nodes = str(authorization_provider) + filter_nodes
471+
self._scopes_access = str(authorization_provider) + scopes_access
489472
self._audience = audience
490473
self._provider = provider
491474

0 commit comments

Comments
 (0)