Skip to content

Commit 334ed7d

Browse files
authored
Merge branch 'develop' into 518-some-service-class-method-documentation-is-not-showing-in-the-manual-pages
2 parents c34ed55 + 2e75fe9 commit 334ed7d

File tree

4 files changed

+3
-26
lines changed

4 files changed

+3
-26
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1111
### Fixed
1212
- Fixed Sphinx autodoc skipping class methods with custom decorators. [#518](https://github.com/IN-CORE/pyincore/issues/518)
1313

14+
### Changed
15+
- Remove unused insecure IN-CORE client [#581](https://github.com/IN-CORE/pyincore/issues/581)
16+
1417
### Added
1518
- Apply Black formatter [#589](https://github.com/IN-CORE/pyincore/issues/589)
1619

docs/source/modules.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -575,8 +575,6 @@ client
575575
:members:
576576
.. autoclass:: client.IncoreClient
577577
:members:
578-
.. autoclass:: client.InsecureIncoreClient
579-
:members:
580578

581579
dataservice
582580
===========

pyincore/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
# The order of import matters. You need to import module by order of dependency
99
from pyincore.client import Client
1010
from pyincore.client import IncoreClient
11-
from pyincore.client import InsecureIncoreClient
1211
from pyincore.hazardservice import HazardService
1312
from pyincore.utils.expressioneval import Parser
1413
from pyincore.utils.cge_ml_file_util import CGEMLFileUtil

pyincore/client.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -451,26 +451,3 @@ def clear_cache(self):
451451
# clear entry from service.json
452452
update_hash_entry("edit", hashed_url=self.hashed_service_url)
453453
return
454-
455-
456-
class InsecureIncoreClient(Client):
457-
"""IN-CORE service client class that bypasses Ambassador auth. It contains token and service root url.
458-
459-
Args:
460-
service_url (str): Service url.
461-
username (str): Username string.
462-
463-
"""
464-
465-
def __init__(self, service_url: str = None, username: str = None):
466-
super().__init__()
467-
if service_url is None or len(service_url.strip()) == 0:
468-
service_url = pyglobals.INCORE_API_PROD_URL
469-
self.service_url = service_url
470-
if username is None or len(username.strip()) == 0:
471-
self.session.headers[
472-
"x-auth-userinfo"
473-
] = pyglobals.INCORE_LDAP_TEST_USER_INFO
474-
else:
475-
user_info = '{"preferred_username": "' + username + '"}'
476-
self.session.headers["x-auth-userinfo"] = user_info

0 commit comments

Comments
 (0)