|
79 | 79 | from pyiceberg.typedef import EMPTY_DICT, UTF8, IcebergBaseModel, Identifier, Properties |
80 | 80 | from pyiceberg.types import transform_dict_value_to_str |
81 | 81 | from pyiceberg.utils.deprecated import deprecation_message |
82 | | -from pyiceberg.utils.properties import get_first_property_value, get_header_properties, property_as_bool |
| 82 | +from pyiceberg.utils.properties import get_header_properties, property_as_bool |
83 | 83 |
|
84 | 84 | if TYPE_CHECKING: |
85 | 85 | import pyarrow as pa |
@@ -137,7 +137,6 @@ class IdentifierKind(Enum): |
137 | 137 | SIGV4 = "rest.sigv4-enabled" |
138 | 138 | SIGV4_REGION = "rest.signing-region" |
139 | 139 | SIGV4_SERVICE = "rest.signing-name" |
140 | | -AUTH_URL = "rest.authorization-url" |
141 | 140 | OAUTH2_SERVER_URI = "oauth2-server-uri" |
142 | 141 |
|
143 | 142 | NAMESPACE_SEPARATOR = b"\x1f".decode(UTF8) |
@@ -318,16 +317,9 @@ def url(self, endpoint: str, prefixed: bool = True, **kwargs: Any) -> str: |
318 | 317 |
|
319 | 318 | @property |
320 | 319 | def auth_url(self) -> str: |
321 | | - if self.properties.get(AUTH_URL): |
322 | | - deprecation_message( |
323 | | - deprecated_in="0.8.0", |
324 | | - removed_in="0.9.0", |
325 | | - help_message=f"The property {AUTH_URL} is deprecated. Please use {OAUTH2_SERVER_URI} instead", |
326 | | - ) |
327 | | - |
328 | 320 | self._warn_oauth_tokens_deprecation() |
329 | 321 |
|
330 | | - if url := get_first_property_value(self.properties, AUTH_URL, OAUTH2_SERVER_URI): |
| 322 | + if url := self.properties.get(OAUTH2_SERVER_URI): |
331 | 323 | return url |
332 | 324 | else: |
333 | 325 | return self.url(Endpoints.get_token, prefixed=False) |
|
0 commit comments